Fix glossary term linking for plural form

This commit is contained in:
Joe Mooring authored and GitHub committed 2025-01-19 16:56:27 -08:00
1 parent cd95f0f34e
commit 80109a14f4
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -287,9 +287,9 @@ either of these shortcodes in conjunction with this render hook.
{{- end }}
{{- /* Verify that a glossary term page exists for the given term. */}}
{{- if site.GetPage (urls.JoinPath $basePath $termGiven) }}
{{- if site.GetPage (urls.JoinPath $basePath ($termGiven | urlize)) }}
{{- $termActual = $termGiven }}
{{- else if site.GetPage (urls.JoinPath $basePath $termSingular) }}
{{- else if site.GetPage (urls.JoinPath $basePath ($termSingular | urlize)) }}
{{- $termActual = $termSingular}}
{{- else }}
{{- $msg := printf "The %q render hook was unable to find a defintion for either the singular or plural form of the term %q: see %s" $renderHookName $termGiven $contentPath }}