···7878subdirectories by default (template.ParseGlob uses filepath.Glob, and
7979doesn't support deep-matching, i.e. **).
80808181+vite also supports templating generic YAML files. Take for instance,
8282+pages/reading.yaml (https://git.icyphox.sh/site/blob/master/pages/reading.yaml):
8383+8484+ meta:
8585+ template: reading.html
8686+ title: reading
8787+ subtitle: Tracking my reading.
8888+ description: I use this page to track my reading.
8989+9090+ books:
9191+ - 2024:
9292+ - name: Dune Messiah
9393+ link: https://en.wikipedia.org/wiki/Dune_Messiah
9494+ author: Frank Herbert
9595+ status: now reading
9696+ - 2023:
9797+ - name: Dune
9898+ link: https://en.wikipedia.org/wiki/Dune_(novel)
9999+ author: Frank Herbert
100100+ status: finished
101101+102102+vite will look for a 'meta' key in the YAML file, and use the 'template'
103103+specified to render the page. The rest of the YAML file is available to
104104+you in the template as a map[string]interface{} called Yaml.
105105+106106+81107More templating examples can be found at:
82108https://git.icyphox.sh/site/tree/templates
83109