Skip to content

Commit 94aec35

Browse files
chg: added 'tags' icons before the list of tags.
1 parent c085c28 commit 94aec35

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

layouts/news/list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ <h3><a style="color: inherit; text-decoration: none;" class="hx-block hx-font-se
1414
{{- if site.Params.news.list.displayTags -}}
1515
{{ with .Params.tags }}
1616
<p class="hx-opacity-50 hx-text-sm hx-leading-7">
17-
{{- range . }}<a class="hx-inline-block hx-mr-2" href="/tags/{{ lower . }}">#{{ . }}</a>{{ end -}}
17+
{{ partial "utils/icon.html" (dict "name" "tag" "attributes" `height=1em class="hx-inline-block ltr:hx-ml-1 rtl:hx-mr-1 hx-align-[-2.5px]"`) }}&nbsp;{{- range . }}<a class="hx-inline-block hx-mr-2" href="/tags/{{ lower . }}">#{{ . }}</a>{{ end -}}
1818
</p>
1919
{{ end -}}
2020
{{- end -}}

layouts/news/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
{{- if site.Params.news.list.displayTags -}}
3939
{{ with .Params.tags }}
4040
<p class="hx-opacity-50 hx-text-sm hx-mb-4 hx-leading-7">
41-
{{- range . }}<a class="hx-inline-block hx-mr-2" href="/tags/{{ lower . }}">#{{ . }}</a>{{ end -}}
41+
{{ partial "utils/icon.html" (dict "name" "tag" "attributes" `height=1em class="hx-inline-block ltr:hx-ml-1 rtl:hx-mr-1 hx-align-[-2.5px]"`) }}&nbsp;{{- range . }}<a class="hx-inline-block hx-mr-2" href="/tags/{{ lower . }}">#{{ . }}</a>{{ end -}}
4242
</p>
4343
{{ end -}}
4444
{{- end -}}

0 commit comments

Comments
 (0)