···3939Example config: https://git.icyphox.sh/site/tree/config.yaml
404041414242+SYNTAX HIGHLIGHTING
4343+4444+vite uses chroma (https://github.com/alecthomas/chroma) for syntax
4545+highlighting. Note that CSS is not provided, and will have to be
4646+included by the user in the templates. A sample style can be generated
4747+by running:
4848+4949+ go run contrib/style.go > syntax.css
5050+5151+4252TEMPLATING
43534454Non-index templates have access to the below objects:
···6272 |-- index.html
6373 `-- project.html
64746565-The templates under 'project/' are referenced as 'project/index.html'.
7575+The templates under project/ are referenced as project/index.html.
6676This deserves mention because Go templates don't recurse into
6777subdirectories by default (template.ParseGlob uses filepath.Glob, and
6868-doesn't support deep-matching, i.e. '**').
7878+doesn't support deep-matching, i.e. **).
69797080More templating examples can be found at:
7181https://git.icyphox.sh/site/tree/templates
···73837484FEEDS
75857676-Atom feeds are generated for all directories under 'pages/'. So
7777-'pages/foo' will have a Atom feed at 'build/foo/feed.xml'.
8686+Atom feeds are generated for all directories under pages/. So
8787+pages/foo will have a Atom feed at build/foo/feed.xml.
788879898090FILE TREE
···8696 |-- static/
8797 |-- templates/
88988989-The entire 'static/' directory gets copied over to 'build/', and can be
9090-used to reference static assets -- css, images, etc. 'pages/' supports
9191-only nesting one directory deep; for example: 'pages/blog/*.md' will
9292-render, but 'pages/blog/foo/*.md' will not.
9999+The entire static/ directory gets copied over to build/, and can be
100100+used to reference static assets -- css, images, etc. pages/ supports
101101+only nesting one directory deep; for example: pages/blog/*.md will
102102+render, but pages/blog/foo/*.md will not.