Skip to content

Commit

Permalink
Changed taxonomy name to theme-tags
Browse files Browse the repository at this point in the history
  • Loading branch information
harrymkt committed Dec 4, 2024
1 parent 1529120 commit 2afd6db
Show file tree
Hide file tree
Showing 21 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ compile_sass = true
build_search_index = true

taxonomies = [
{ name = "tags"}
{ name = "theme-tags"}
]

[search]
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<h1>Tags</h1>
{% set section = get_section(path = "themes/_index.md") %}
<p><a href="{{ get_url(path = "themes") }}">All themes ({{ section.pages | length }}</a></p>
<ul>
<ul style="list-style-type: none;">
{% for t in terms %}
<li><a href="{{ t.permalink }}">{{ t.name }}({{ t.page_count }}</a></li>
{% endfor %}
Expand Down
File renamed without changes.
10 changes: 10 additions & 0 deletions docs/templates/theme.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ <h1>{{ page.title }}</h1>
{% if page.extra.demo %}
<p><b>Live Demo:</b> <a href="{{page.extra.demo}}">{{page.extra.demo}}</a></p>
{% endif %}
{% if page.taxonomies["theme-tags"] %}
<div>
<p>Tags:</p>
<ul style="list-style-type: none;">
{% for t in page.taxonomies["theme-tags"] %}
{% set term = get_taxonomy_term(kind="theme-tags", term = t) %}
<li><a href="{{ term.permalink }}">{{ term.name }}</a></li>
{% endfor %}
</div>
{% endif %}
<p><b>Last updated:</b> {{page.extra.updated }}</p>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/templates/themes.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div class="themes-container">
{% block theme_content %}
<h1>Zola themes</h1>
<p><a href="{{ get_url(path = "tags") }}">Search by tags</a></p>
<p><a href="{{ get_url(path = "theme-tags") }}">Search by tags</a></p>
<div class="themes">
{% for theme in section.pages %}
<a class="theme" href="{{theme.permalink}}">
Expand Down

0 comments on commit 2afd6db

Please sign in to comment.