Yet another static site generator--a tiny hugo.
- I wrote this to generate static html for my own website. I sometimes modify its behavior to suit my purposes. There is no intention to support general-purpose use. See the license for additional disclaimers.
- Topics/tags are only rendered once 2 separate articles reference them.
- Rather than use this repo outright, why not create your own fork, or create your own static site generator from scratch? It's really not that difficult, and it's a fun, relatively small-sized project.
Article Markdown and templates are trusted publishing input. Article Markdown intentionally permits raw HTML, including inline styles, so do not build a site from untrusted or externally submitted content without adding an HTML sanitization policy first. A trusted author can therefore publish executable markup and unsafe links.
Metadata such as titles, introductions, slugs, and topics is data rather than trusted markup. Templates must contextually escape it; only the Markdown conversion result should be deliberately rendered as HTML.
- Clone this repo
- Change directory to newly cloned repo
- Run
make install
- Install per above instructions
- Change directory to
./example-site - Run
make dev- Will start a web server--open browser to http://localhost:7070 to load the site.
- Refresh the browser after saving changes to content.
- Restart the web server process after saving changes to templates, then refresh the browser.
- Or, run
make generateto generate the static html and exit.- From there you can copy/upload the html wherever you want.