Browse Source

Updated config for the newest Zola

master
Julio Biason 2 years ago
parent
commit
be16beeda9
  1. 15
      config.toml
  2. 9
      templates/taxonomy_list.html
  3. 11
      templates/taxonomy_single.html

15
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

9
templates/taxonomy_list.html

@ -0,0 +1,9 @@
{% extends "index.html" %}
{% block content %}
{% for tag in terms %}
<a href="{{ tag.permalink | safe }}">
<span>{{ tag.name }} ({{ tag.pages | length }})</span>
</a>
{% endfor %}
{% endblock content %}

11
templates/taxonomy_single.html

@ -0,0 +1,11 @@
{% extends "index.html" %}
{% block content %}
<h1 class="post-title">{{ term.name }}</h1>
<ul>
{% for page in term.pages %}
<li><a href="{{ page.permalink | safe }}">{{ page.title }}</a>
{% endfor %}
</ul>
{% endblock content %}
Loading…
Cancel
Save