taxonomies are optional in pages

pull/2/head
José Lopes 5 years ago
parent a8a63801a8
commit 85c04db4ca

@ -15,6 +15,7 @@
{% endif %} {% endif %}
</dd> </dd>
{% if page.taxonomies.categories %}
<dt>{{ config.extra.label_taxonomy }}</dt> <dt>{{ config.extra.label_taxonomy }}</dt>
<dd> <dd>
<a href="{{ get_taxonomy_url(kind="categories", name=page.taxonomies.categories[0]) }}"> <a href="{{ get_taxonomy_url(kind="categories", name=page.taxonomies.categories[0]) }}">
@ -26,6 +27,7 @@
{% endfor %} {% endfor %}
</a> </a>
</dd> </dd>
{% endif %}
<dt>{{ config.extra.label_reading }}</dt> <dt>{{ config.extra.label_reading }}</dt>
<dd>{{ page.reading_time }}'</dd> <dd>{{ page.reading_time }}'</dd>

@ -2,7 +2,7 @@ name = "zola.386"
description = "Zola port of the BOOTSTRA.386 theme." description = "Zola port of the BOOTSTRA.386 theme."
license = "MIT" license = "MIT"
homepage = "https://github.com/lopes/zola.386" homepage = "https://github.com/lopes/zola.386"
min_version = "0.1.6" min_version = "0.1.7"
demo = "https://zola-386.netlify.com" demo = "https://zola-386.netlify.com"
[author] [author]

Loading…
Cancel
Save