31 lines
848 B
Plaintext
31 lines
848 B
Plaintext
Each dir defines a base, path, asset storage or blog index
|
|
|
|
# page
|
|
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
|
|
- main_page/
|
|
- config.toml
|
|
- index.html
|
|
- 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"
|