diff options
| author | Ahmed M Alaa <aa@4b.cx> | 2022-12-05 14:48:27 +0200 |
|---|---|---|
| committer | Ahmed M Alaa <aa@4b.cx> | 2022-12-05 14:48:27 +0200 |
| commit | 7daa254c0b2be4055a40ef320f44e7d066dca753 (patch) | |
| tree | a1e5998194299808803a8812d7fe283a0fae0e75 /README.md | |
| parent | 2d7be35ef50d37f5057248d20cbeb1f06fd5cde0 (diff) | |
added: default taxonomies templates, custom nav links
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 33 |
1 files changed, 33 insertions, 0 deletions
@@ -22,6 +22,19 @@ theme = "no-style-please" ## Options +### Default taxonomies + +Special templates for `tags`, `categories`, and `contexts` taxonomies are provided. However, generic templates exist for custom taxonomies. + +To use taxonomies, in a page metadata add + +```toml +[taxonomies] +tags = [ 'tag1', 'tag2' ] +categories = [ 'category A', 'B class' ] +genre = [ 'rock', 'alternative' ] # custom taxonomy +``` + ### Pages list in homepage To enable listing of pages in homepage add the following in `config.toml` @@ -31,6 +44,26 @@ To enable listing of pages in homepage add the following in `config.toml` list_pages = false ``` +### Header and footer nav links + +Also in the `extra` section in `config.toml` + +```toml +[extra] + +header_nav = [ + { name = "~home", url = "/" }, + { name = "#tags", url = "/tags" }, + { name = "+categories", url = "/categories" }, + { name = "@contexts", url = "/contexts" }, +] +footer_nav = [ + { name = "< previous", url = "#" }, + { name = "webring", url = "#" }, + { name = "next >", url = "#" }, +] +``` + ### Add TOC to pages In a page frontmatter, set `extra.add_toc` to `true` |
