💄 style(html): adjust class attribute order in tag list

- move class "p-category" to the anchor tag for better semantic HTML structure
This commit is contained in:
Jeremiah Russell 2025-04-30 11:27:16 +01:00
parent 58b664c73f
commit df91442a2b
No known key found for this signature in database
GPG key ID: E576B835ACE207E5

View file

@ -157,7 +157,7 @@ Current section extra: {% if current_section %}{{ current_section.extra | json_e
{%- if page.taxonomies and page.taxonomies.tags -%}
<li class="tag">{%- if previous_visible -%}{{ separator_with_class | safe }}{%- endif -%}{{- macros_translate::translate(key="tags", default="tags", language_strings=language_strings) | capitalize -}}:&nbsp;</li>
{%- for tag in page.taxonomies.tags -%}
<li class="p-category tag"><a href="{{ get_taxonomy_url(kind='tags', name=tag, lang=lang) | safe }}">{{ tag }}</a>
<li class="tag"><a class="p-category" href="{{ get_taxonomy_url(kind='tags', name=tag, lang=lang) | safe }}">{{ tag }}</a>
{%- if not loop.last -%}
,&nbsp;
{%- endif -%}