diff options
Diffstat (limited to 'templates/partials/note-list-item.html')
| -rw-r--r-- | templates/partials/note-list-item.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/partials/note-list-item.html b/templates/partials/note-list-item.html new file mode 100644 index 0000000..67ca8f7 --- /dev/null +++ b/templates/partials/note-list-item.html @@ -0,0 +1,14 @@ +<article class="note-list-item"> + <time datetime="{{ item.date }}">{{ item.date | date(format='%Y-%m-%d') }}</time> + <div class="list-item-main"> + <h3><a href="{{ item.permalink }}">{{ item.title }}</a></h3> + {% if item.description %}<p>{{ item.description }}</p>{% endif %} + {% if item.taxonomies.tags %} + <ul class="tag-list" aria-label="タグ"> + {% for tag in item.taxonomies.tags %} + <li><a href="{{ get_taxonomy_url(kind='tags', term=tag) }}">{{ tag }}</a></li> + {% endfor %} + </ul> + {% endif %} + </div> +</article> |
