From be16beeda92a7f5db82d75fd162c7a5e97108944 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Tue, 14 Jun 2022 14:45:56 -0300 Subject: [PATCH] Updated config for the newest Zola --- config.toml | 15 +++++++++++---- templates/taxonomy_list.html | 9 +++++++++ templates/taxonomy_single.html | 11 +++++++++++ 3 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 templates/taxonomy_list.html create mode 100644 templates/taxonomy_single.html diff --git a/config.toml b/config.toml index 961705d..a0a92a5 100644 --- a/config.toml +++ b/config.toml @@ -12,7 +12,6 @@ theme = "hyde" # theme = "terminimal-light" taxonomies = [ - # You can enable/disable RSS {name = "categories", rss = true}, {name = "tags", rss = true}, {name = "tags", lang = "en"}, @@ -25,10 +24,18 @@ generate_rss = true # build_search_index = true default_language = "en" -languages = [ - {code = "pt", rss = true}, - {code = "pt", search = false}, + +[languages.pt] +rss = true +build_search_index = true +taxonomies = [ + {name = "categories", rss = true}, + {name = "tags", rss = true}, + {name = "tags", lang = "en"}, + {name = "tags", lang = "pt"}, ] +title = "Julio Biason .Net 4.2" +description = "Old school dev living in a 2.0 dev world" [markdown] highlight_code = true diff --git a/templates/taxonomy_list.html b/templates/taxonomy_list.html new file mode 100644 index 0000000..ba3c97a --- /dev/null +++ b/templates/taxonomy_list.html @@ -0,0 +1,9 @@ +{% extends "index.html" %} + +{% block content %} + {% for tag in terms %} + + {{ tag.name }} ({{ tag.pages | length }}) + + {% endfor %} +{% endblock content %} diff --git a/templates/taxonomy_single.html b/templates/taxonomy_single.html new file mode 100644 index 0000000..fd52588 --- /dev/null +++ b/templates/taxonomy_single.html @@ -0,0 +1,11 @@ +{% extends "index.html" %} + +{% block content %} +

{{ term.name }}

+ + +{% endblock content %}