diff options
author | Alan Pearce | 2023-06-23 14:01:52 +0200 |
---|---|---|
committer | Alan Pearce | 2023-06-23 14:04:53 +0200 |
commit | 19701d1646fcf8f95c51bab60ee4aadc23ece2b5 (patch) | |
tree | 121fba3e659a63de8f9849c35017913520f562e2 /themes | |
parent | 805b34faf0bbdaf135e16072b8dd9153a24368ad (diff) | |
download | website-19701d1646fcf8f95c51bab60ee4aadc23ece2b5.tar.lz website-19701d1646fcf8f95c51bab60ee4aadc23ece2b5.tar.zst website-19701d1646fcf8f95c51bab60ee4aadc23ece2b5.zip |
Make tag lists more semantic
Diffstat (limited to 'themes')
-rw-r--r-- | themes/bear/templates/page.html | 6 | ||||
-rw-r--r-- | themes/bear/templates/section.html | 16 |
2 files changed, 10 insertions, 12 deletions
diff --git a/themes/bear/templates/page.html b/themes/bear/templates/page.html index d91a47f..393139b 100644 --- a/themes/bear/templates/page.html +++ b/themes/bear/templates/page.html @@ -16,14 +16,14 @@ <main id="content"> {{ page.content | safe }} </main> - <p> + <ul class="tags"> {%- if page.taxonomies %} {%- for name, taxon in page.taxonomies %} {{ name | capitalize }}: {%- for item in taxon %} - <a href="{{ get_taxonomy_url(kind=name, name=item) }}">#{{ item }}</a> + <li><a href="{{ get_taxonomy_url(kind=name, name=item) }}">#{{ item }}</a></li> {%- endfor %} {%- endfor %} {%- endif %} - </p> + </ul> {% endblock %} diff --git a/themes/bear/templates/section.html b/themes/bear/templates/section.html index c7f80de..3042cd2 100644 --- a/themes/bear/templates/section.html +++ b/themes/bear/templates/section.html @@ -22,15 +22,13 @@ <li> No posts yet </li> - {% endfor %} + {%- endfor %} + </ul> + <ul class="tags"> + {%- set tags = get_taxonomy(kind="tags") %} + {%- for post in tags.items %} + <li><a href="{{ post.path | urlencode | safe }}">#{{ post.name }}</a></li> + {%- endfor %} </ul> - <small> - <div> - {% set tags = get_taxonomy(kind="tags") %} - {% for post in tags.items %} - <a href="{{ post.path | urlencode | safe }}">#{{ post.name }}</a> - {% endfor %} - </div> - </small> </main> {% endblock %} |