mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-28 22:19:59 +02:00
Merge commit '5be51ac3db225d5df501ed1fa1499c41d97dbf65'
This commit is contained in:
@@ -2,16 +2,14 @@
|
||||
Renders the definition of the given glossary term.
|
||||
|
||||
@param {string} (.Get 0) The glossary term.
|
||||
@returns {template.HTML}
|
||||
|
||||
@example {{% glossary-term float %}}
|
||||
@example {{% glossary-term "floating point" %}}
|
||||
*/}}
|
||||
|
||||
*/ -}}
|
||||
{{- with .Get 0 }}
|
||||
{{- $path := printf "/quick-reference/glossary/%s" (urlize .) }}
|
||||
{{- with site.GetPage $path }}
|
||||
{{ .RenderShortcodes }} {{/* Do not indent. Do not remove non-breaking space. */}}
|
||||
{{ .RenderShortcodes }}{{/* Do not indent. */}}
|
||||
{{- else }}
|
||||
{{- errorf "The glossary term (%s) shortcode was unable to find %s: see %s" $.Name $path $.Position }}
|
||||
{{- end }}
|
||||
|
Reference in New Issue
Block a user