don't parse numbers in album titles

e.g. '2022' -> '2020nd'
This commit is contained in:
Christoph Schindlbeck 2023-02-09 22:49:34 +01:00
parent 198df94647
commit 0a88edb862

View File

@ -33,7 +33,7 @@
{{- $part := $element | humanize }} {{- $part := $element | humanize }}
/ <a href="{{ $.Site.BaseURL }}{{ $path }}"><strong>{{ cond $crumb_is_title ((($.Site.GetPage $path).Title) | default $part) $part }}</strong></a> / <a href="{{ $.Site.BaseURL }}{{ $path }}"><strong>{{ cond $crumb_is_title ((($.Site.GetPage $path).Title) | default $part) $part }}</strong></a>
{{- end -}} {{- end -}}
{{- $cur_part := (index $url_parts (sub $use_part_cnt 1)) | humanize }} {{- $cur_part := (index $url_parts (sub $use_part_cnt 1)) }}
/ {{ cond $crumb_is_title (.Title | default $cur_part) $cur_part }} / {{ cond $crumb_is_title (.Title | default $cur_part) $cur_part }}
{{- end }} {{- end }}
</h1> </h1>