-
Notifications
You must be signed in to change notification settings - Fork 990
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added tags support for themes (#2720)
* Added tags support for themes * Docs: updated theme creation documentation, adding the tags optional variable * Changed taxonomy name to `theme-tags` * Revert "Changed taxonomy name to `theme-tags`" This reverts commit 2afd6db. * resolving * resolve * Search by tags not shown if no content with `theme-tags` taxonomy is provided
- Loading branch information
Showing
6 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{% extends "index.html" %} | ||
|
||
{% block extra_nav_class %}{% endblock extra_nav_class %} | ||
{% block extra_content_class %}content--reversed{% endblock extra_content_class %} | ||
|
||
{% block title %}Themes | {{ super() }} {% endblock title %} | ||
|
||
{% block content %} | ||
<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 style="list-style-type: none;"> | ||
{% for t in terms %} | ||
<li><a href="{{ t.permalink }}">{{ t.name }}({{ t.page_count }}</a></li> | ||
{% endfor %} | ||
</ul> | ||
{% endblock content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{% extends "index.html" %} | ||
|
||
{% block extra_nav_class %}{% endblock extra_nav_class %} | ||
{% block extra_content_class %}content--reversed{% endblock extra_content_class %} | ||
|
||
{% block title %}Themes | {{ super() }} {% endblock title %} | ||
|
||
{% block content %} | ||
<div class="themes-container"> | ||
{% block theme_content %} | ||
<h1>Zola themes in {{ term.name }}</h1> | ||
<div class="themes"> | ||
{% for theme in term.pages %} | ||
<a class="theme" href="{{theme.permalink}}"> | ||
<img src="{{theme.permalink}}screenshot.png" alt="Screenshot of {{theme.title}}"> | ||
<span>{{theme.title}}</span> | ||
</a> | ||
{% endfor %} | ||
</div> | ||
{% endblock theme_content %} | ||
</div> | ||
{% endblock content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters