···5959• Meta: map[string]string of the page's frontmatter metadata
6060• Body: Contains the HTML
61616262-Index templates have access to everything above, and a Posts object,
6363-which is a slice containing HTML and Meta. This is useful for iterating
6464-through to generate an index page.
6262+6363+Index templates have access to everything above, and an Extra object,
6464+which is a slice of types.Post containing Body and Meta. This is useful
6565+for iterating through to generate an index page.
6566Example: https://git.icyphox.sh/site/tree/templates/index.html
66676768Templates are written as standard Go templates (ref:
···8788 template: reading.html
8889 title: reading
8990 subtitle: Tracking my reading.
9090- description: I use this page to track my reading.
9191+ description: I use this page to track my reading.
91929293 books:
9394 - 2024:
···129130used to reference static assets -- css, images, etc. pages/ supports
130131only nesting one directory deep; for example: pages/blog/*.md will
131132render, but pages/blog/foo/*.md will not.
133133+134134+135135+BUGS
136136+137137+Or rather, (undocumented) features. There's probably a couple. If you are
138138+actually using this, feel free to reach out and I can try to help.