22 lines
607 B
HTML
22 lines
607 B
HTML
{{- $items := . -}}
|
|
{{- if gt (len $items) 0 -}}
|
|
<ul class="keywords">
|
|
{{- range (sort $items "Title") }}
|
|
{{- $type := printf "%T" . -}}
|
|
{{- $isPage := or (strings.HasPrefix $type "*hugolib.") (strings.HasPrefix $type "page.") -}}
|
|
<li>
|
|
{{- if $isPage -}}
|
|
<a href="{{ .RelPermalink }}">{{ with .LinkTitle }}{{ . }}{{ else }}{{ .Title }}{{ end }}</a>
|
|
{{ with .Pages -}}
|
|
<sub>{{ len . }}</sub>
|
|
{{- else -}}
|
|
<sub>0</sub>
|
|
{{- end -}}
|
|
{{- else -}}
|
|
{{ . }}<sub>—</sub>
|
|
{{- end }}
|
|
</li>
|
|
{{- end }}
|
|
</ul>
|
|
{{- end }}
|