Hacker News new | ask | show | jobs
by cyri 3864 days ago
What would you like to do? 1-2 concrete examples please.
3 comments

I have not used it so it is a bit unfair to ask for concrete examples of what I would need that it doesn't do. But in general, something like using the GitHub API (as my user) to obtain a list of recent commits to format a certain way could be an example.

But in all honesty my question was also wondering if this had a good story around runtime Go compilation since I am building a Go project that could be construed as a "static-binary generator" for an orchestration and configuration management system.

I've implemented the getJSON Feature http://gohugo.io/extras/datadrivencontent/ and this should be what you are looking for ;-)
One thing that I'd love to be able to do with Hugo (I'd probably switch from Middleman if this was possible): dynamic proxy pages:

https://middlemanapp.com/advanced/dynamic_pages/

"Middleman has the ability to generate pages which do not have a one-to-one relationship with their template files. What this means is that you can have a single template which generates multiple files based on variables."

So I can take a JSON file with an array of data, and generate a file dynamically for each object in the array.

Last I looked, I couldn't figure out how to do this with Hugo. Is it possible now?

Are the some examples on how to implenent a statically regenerated blog in a static site?