fast and minimal static site generator
ssg

Update readme

+11 -4
+11 -4
readme
··· 59 59 • Meta: map[string]string of the page's frontmatter metadata 60 60 • Body: Contains the HTML 61 61 62 - Index templates have access to everything above, and a Posts object, 63 - which is a slice containing HTML and Meta. This is useful for iterating 64 - through to generate an index page. 62 + 63 + Index templates have access to everything above, and an Extra object, 64 + which is a slice of types.Post containing Body and Meta. This is useful 65 + for iterating through to generate an index page. 65 66 Example: https://git.icyphox.sh/site/tree/templates/index.html 66 67 67 68 Templates are written as standard Go templates (ref: ··· 87 88 template: reading.html 88 89 title: reading 89 90 subtitle: Tracking my reading. 90 - description: I use this page to track my reading. 91 + description: I use this page to track my reading. 91 92 92 93 books: 93 94 - 2024: ··· 129 130 used to reference static assets -- css, images, etc. pages/ supports 130 131 only nesting one directory deep; for example: pages/blog/*.md will 131 132 render, but pages/blog/foo/*.md will not. 133 + 134 + 135 + BUGS 136 + 137 + Or rather, (undocumented) features. There's probably a couple. If you are 138 + actually using this, feel free to reach out and I can try to help.