Skip to content

Commit 2afd6db

Browse files
committed
Changed taxonomy name to theme-tags
1 parent 1529120 commit 2afd6db

21 files changed

+13
-3
lines changed

docs/config.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ compile_sass = true
66
build_search_index = true
77

88
taxonomies = [
9-
{ name = "tags"}
9+
{ name = "theme-tags"}
1010
]
1111

1212
[search]
Loading
Binary file not shown.
Loading
Binary file not shown.
Loading
Binary file not shown.
Binary file not shown.
Loading
Binary file not shown.
Loading
Binary file not shown.
Loading
Binary file not shown.
Loading
Loading
Binary file not shown.

docs/templates/tags/list.html docs/templates/theme-tags/list.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<h1>Tags</h1>
1010
{% set section = get_section(path = "themes/_index.md") %}
1111
<p><a href="{{ get_url(path = "themes") }}">All themes ({{ section.pages | length }}</a></p>
12-
<ul>
12+
<ul style="list-style-type: none;">
1313
{% for t in terms %}
1414
<li><a href="{{ t.permalink }}">{{ t.name }}({{ t.page_count }}</a></li>
1515
{% endfor %}
File renamed without changes.

docs/templates/theme.html

+10
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@ <h1>{{ page.title }}</h1>
1313
{% if page.extra.demo %}
1414
<p><b>Live Demo:</b> <a href="{{page.extra.demo}}">{{page.extra.demo}}</a></p>
1515
{% endif %}
16+
{% if page.taxonomies["theme-tags"] %}
17+
<div>
18+
<p>Tags:</p>
19+
<ul style="list-style-type: none;">
20+
{% for t in page.taxonomies["theme-tags"] %}
21+
{% set term = get_taxonomy_term(kind="theme-tags", term = t) %}
22+
<li><a href="{{ term.permalink }}">{{ term.name }}</a></li>
23+
{% endfor %}
24+
</div>
25+
{% endif %}
1626
<p><b>Last updated:</b> {{page.extra.updated }}</p>
1727
</div>
1828
</div>

docs/templates/themes.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<div class="themes-container">
1010
{% block theme_content %}
1111
<h1>Zola themes</h1>
12-
<p><a href="{{ get_url(path = "tags") }}">Search by tags</a></p>
12+
<p><a href="{{ get_url(path = "theme-tags") }}">Search by tags</a></p>
1313
<div class="themes">
1414
{% for theme in section.pages %}
1515
<a class="theme" href="{{theme.permalink}}">

0 commit comments

Comments
 (0)