kidsil / hugo-data-to-pages Goto Github PK
View Code? Open in Web Editor NEWGenerate pages from data on Hugo
License: MIT License
Generate pages from data on Hugo
License: MIT License
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.
Pretty self explanatory..
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.