Giter VIP home page Giter VIP logo

hugo-data-to-pages's People

Contributors

kidsil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

hugo-data-to-pages's Issues

How to create folder?

Hi! I manage to makes it working. How to automatically generate site structure like:

root/folder-1-name(specified in yaml)/name
root/folder-2-name(specified in yaml)/name

Thanks for help.

Getting error message when running

Hey there,
I was quite excited to try this out as it is exactly what I was hoping to locate functionality wise, though, when I went to test it out with the demo content, I received the following error:

/mnt/e/GitHub/hugo-data-to-pages(master*) » node hugo.js
Building data-generated files...
Created file: example/content/paul-mccartney/index.md
Created file: example/content/john-lennon/index.md
Created file: example/content/george-harrison/index.md
Created file: example/content/ringo-starr/index.md
Running Hugo (build)...
Error: Error building site: "/mnt/e/GitHub/hugo-data-to-pages/example/content/_index.md:1:1": plain HTML documents not supported
(node:364) UnhandledPromiseRejectionWarning: Error: Command failed: (cd example/ && /mnt/e/_programming/go/bin/hugo)
Error: Error building site: "/mnt/e/GitHub/hugo-data-to-pages/example/content/_index.md:1:1": plain HTML documents not supported

    at checkExecSyncError (child_process.js:611:11)
    at execSync (child_process.js:647:15)
    at main (/mnt/e/GitHub/hugo-data-to-pages/hugo.js:115:9)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:364) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:364) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

It looks like it produces a file of _index.md, but that file just contains HTML. If I manually change that file to become index.html then trying to run the hugo server against the demo directory after the fact, the demo site works. The actual flow of events when running hugo.js must need some adjustments so as not to produce an md file containing html?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.