Taxonomies
This commit is contained in:
13
themes/42/layouts/_partials/keywords.html
Normal file
13
themes/42/layouts/_partials/keywords.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{{- $items := . -}}
|
||||
{{- if gt (len $items) 0 -}}
|
||||
<ul class="keywords">
|
||||
{{- range $items }}
|
||||
{{- $type := printf "%T" . -}}
|
||||
{{- if or (strings.HasPrefix $type "*hugolib.") (strings.HasPrefix $type "page.") }}
|
||||
<li><a href="{{ .RelPermalink }}">{{ with .LinkTitle }}{{ . }}{{ else }}{{ .Title }}{{ end }}</a></li>
|
||||
{{- else }}
|
||||
<li>{{ . }}</li>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
</ul>
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user