Add paige-keyword-category, tag classes
This commit is contained in:
@@ -38,14 +38,22 @@
|
||||
{{ with $keywords }}
|
||||
<p class="{{ if $textkeywords }} paige-row-narrow {{ end }} text-center {{ if $textkeywords }} text-secondary {{ end }}" id="paige-keywords">
|
||||
{{ range $i, $term := . -}}
|
||||
{{- $kind := false -}}
|
||||
|
||||
{{- if in $categories $term -}}
|
||||
{{- $kind = "category" -}}
|
||||
{{- else -}}
|
||||
{{- $kind = "tag" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- if $textkeywords -}}
|
||||
{{- if gt $i 0 }} · {{ end -}}
|
||||
|
||||
<a class="link-secondary paige-keyword" href="{{ .RelPermalink | safeURL }}">{{ .Title }}</a>
|
||||
<a class="link-secondary paige-keyword paige-keyword-{{ $kind }}" href="{{ .RelPermalink | safeURL }}">{{ .Title }}</a>
|
||||
{{- else -}}
|
||||
{{- if gt $i 0 }} {{ end -}}
|
||||
|
||||
<a class="badge paige-keyword text-bg-secondary text-decoration-none" href="{{ .RelPermalink | safeURL }}">{{ .Title }}</a>
|
||||
<a class="badge paige-keyword paige-keyword-{{ $kind }} text-bg-secondary text-decoration-none" href="{{ .RelPermalink | safeURL }}">{{ .Title }}</a>
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
</p>
|
||||
|
Reference in New Issue
Block a user