SandpointsTheme/layouts/partials/GetSingularSectionName.html

10 lines
282 B
HTML
Raw Normal View History

2025-04-03 16:24:20 +02:00
{{- $pluralSection := . -}}
{{- $sectionMap := site.Data.sandpointsnamegraph -}}
{{- $section := "" -}}
{{- range $singular, $plural := $sectionMap -}}
{{- if eq $plural $pluralSection -}}
{{- $section = $singular -}}
{{- end -}}
{{- end -}}
{{- return $section -}}