This commit is contained in:
2026-01-19 21:12:46 +00:00
parent d52c29d583
commit 1b19c8bc02

View File

@@ -1,7 +1,7 @@
Each dir defines a path, asset storage or blog index
Each dir defines a base, path, asset storage or blog index
# page
Pages are single file html Jinja2 template files. They may also include an asset dir for assets local to that dir which can be accessed using a jinja function `` get_local_asset("img.png") ``
Pages are dirs with a single file html Jinja2 template file (index.html). They may also include an asset dir (assets/) for assets local to that dir which can be accessed using a jinja function `` get_local_asset("img.png") ``
you may also include assets within the page dir directly and use `` get_local_asset("../img.png") ``
this is how you'd define a page
@@ -11,3 +11,20 @@ this is how you'd define a page
- assets/
- img.png
- text.txt
# config.toml
the config is used to see what type of dir (Page, AssetStore or BlogIndex) it is, and is the first thing that is loaded for the dir.
The config also describes what path the page is.
```toml
type = "page"
# OR
# type = "base"
# type = "asset_store"
# type = "blog_index"
path = "/"
# OR
# path = "/meow"
# path = "/meow.html"