-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from harish-coeff/for-tags
Taxonomy and tags
- Loading branch information
Showing
4 changed files
with
33 additions
and
18 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 |
---|---|---|
@@ -1,6 +1,15 @@ | ||
{%extends "base.html"%} | ||
|
||
{% block main_content %} | ||
{{ post_macros::page_header(title=taxonomy.name) }} | ||
{{ post_macros::list_terms(terms=terms) }} | ||
<div class="tag-cloud"> | ||
<ul class="tags"> | ||
{% for term in terms %} | ||
<li> | ||
<a href="{{ term.permalink | safe }}"> | ||
{{ term.name }} ({{ term.pages | length }} post{{ term.pages | length | pluralize }}) | ||
</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
{% endblock main_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 |
---|---|---|
@@ -1,20 +1,7 @@ | ||
{% extends "section.html" %} | ||
{% extends "index.html" %} | ||
|
||
{% block main_content %} | ||
|
||
{% block title %} | ||
{{ post_macros::page_header(title=term.name) }} | ||
{% endblock title %} | ||
|
||
{% block post_list %} | ||
<main class="list"> | ||
{%- if paginator %} | ||
{%- set show_pages = paginator.pages -%} | ||
{% else %} | ||
{%- set show_pages = term.pages -%} | ||
{% endif -%} | ||
{{ post_macros::list_title(pages=term.pages, tag_name=term.name) }} | ||
|
||
{{ post_macros::list_posts(pages=show_pages) }} | ||
</main> | ||
{% endblock post_list %} | ||
{% block main_content %} | ||
{% endblock main_content %} |