writing
This commit is contained in:
21
bleh.txt
21
bleh.txt
@@ -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
|
# 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") ``
|
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
|
this is how you'd define a page
|
||||||
@@ -11,3 +11,20 @@ this is how you'd define a page
|
|||||||
- assets/
|
- assets/
|
||||||
- img.png
|
- img.png
|
||||||
- text.txt
|
- 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"
|
||||||
|
|||||||
Reference in New Issue
Block a user