diff options
Diffstat (limited to 'templates/tags')
| -rw-r--r-- | templates/tags/list.html | 18 | ||||
| -rw-r--r-- | templates/tags/single.html | 20 |
2 files changed, 38 insertions, 0 deletions
diff --git a/templates/tags/list.html b/templates/tags/list.html new file mode 100644 index 0000000..6567506 --- /dev/null +++ b/templates/tags/list.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} + +{% block title %}タグ | {{ config.title }}{% endblock title %} +{% block description %}Notesを分類するタグの一覧。{% endblock description %} + +{% block content %} +<div class="site-container listing-page taxonomy-page"> + <header class="page-header"> + <h1>タグ</h1> + <p>主題を横断してNotesを探すための索引です。</p> + </header> + <ul class="taxonomy-list"> + {% for term in terms %} + <li><a href="{{ term.permalink }}">{{ term.name }}</a><span>{{ term.page_count }}件</span></li> + {% endfor %} + </ul> +</div> +{% endblock content %} diff --git a/templates/tags/single.html b/templates/tags/single.html new file mode 100644 index 0000000..2ec6fa1 --- /dev/null +++ b/templates/tags/single.html @@ -0,0 +1,20 @@ +{% extends "base.html" %} + +{% block title %}{{ term.name }} | タグ | {{ config.title }}{% endblock title %} +{% block description %}タグ「{{ term.name }}」の記事一覧。{% endblock description %} + +{% block content %} +<div class="site-container listing-page"> + <header class="page-header"> + <p class="article-kind"><a href="{{ get_url(path='tags', trailing_slash=true) }}">タグ</a></p> + <h1>{{ term.name }}</h1> + <p>{{ term.page_count }}件の記録</p> + </header> + <div class="note-list"> + {% for page in term.pages %} + {% set item = page %} + {% include "partials/note-list-item.html" %} + {% endfor %} + </div> +</div> +{% endblock content %} |
