glossary-term.html - hugo - [fork] hugo port for 9front
HTML git clone https://git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
glossary-term.html (632B)
---
1 {{- /*
2 Renders the definition of the given glossary term.
3
4 @param {string} (.Get 0) The glossary term.
5
6 @example {{% glossary-term float %}}
7 @example {{% glossary-term "floating point" %}}
8 */ -}}
9 {{- with .Get 0 }}
10 {{- $path := printf "/quick-reference/glossary/%s" (urlize .) }}
11 {{- with site.GetPage $path }}
12 {{ .RenderShortcodes }}{{/* Do not indent. */}}
13 {{- else }}
14 {{- errorf "The glossary term (%s) shortcode was unable to find %s: see %s" $.Name $path $.Position }}
15 {{- end }}
16 {{- else }}
17 {{- errorf "The glossary term (%s) shortcode requires one positional parameter: see %s" $.Name $.Position }}
18 {{- end -}}