mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
Merge commit 'a024bc7d76fcc5e49e8210f9b0896db9ef21861a'
This commit is contained in:
@@ -9,12 +9,12 @@ Renders the definition of the given glossary term.
|
||||
*/}}
|
||||
|
||||
{{- with .Get 0 }}
|
||||
{{- $path := printf "/getting-started/glossary/%s" (urlize .) }}
|
||||
{{- $path := printf "/quick-reference/glossary/%s" (urlize .) }}
|
||||
{{- with site.GetPage $path }}
|
||||
{{ .RenderShortcodes }}{{/* Do not indent. */}}
|
||||
{{ .RenderShortcodes }} {{/* Do not indent. Do not remove non-breaking space. */}}
|
||||
{{- else }}
|
||||
{{- errorf "The glossary term (%s) shortcode was unable to find %s: see %s" $.Name $path $.Position }}
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
{{- errorf "The glossary term (%s) shortcode requires one positional parameter: see %s" $.Name $.Position }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
|
Reference in New Issue
Block a user