Because, pimpin' ain't easy fam - Willie Nelson
A simple static site generator written in node with handlebars templating baked-in.
pagesexist insrc/pages/templateswhich render pages (layouts/includes) exist insrc/templates/- Site wide variables exist in
src/config.jsonand can be accessed via{{ site.title }} - Page variables exist within the page's frontmatter, eg:
---
title: Home
layout: default
people:
- name: bond
- name: fett
---A list example from frontmatter data:
The page would then use the src/templates/layouts/default.html as a layout file.
Data files are located in src/data as json files.
If a data file is at src/data/people.json then you can access it via
Routing is handled based on file paths (recursively), eg:
src/pages/resources/magazines.html
routes to
<your_site_url>/resources/magazines/
Helpers are available to add in src/lib/helpers
helper which you can use to embed a javascript or css file in your html It pulls from the
src/assets/directory:
Javscript file embed from src/assets/js/embed-me.js
helper to add markdown files to your html