mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-17 10:14:20 +00:00
Fix glossary term linking for plural form
This commit is contained in:
1 parent
cd95f0f34e
commit
80109a14f4
2 files changed
+4
-4
No files matched your search
@@ -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 }}
|
||||
|
||||
Reference in new issue
Block a user