mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
aaaf1c8df5
4d936aee6Fix function signatures8182a27edSimplify example usage of apply function git-subtree-dir: docs git-subtree-split:4d936aee62
13 lines
440 B
HTML
13 lines
440 B
HTML
{{- with .Params.function.signatures }}
|
|
<h2 class="minor mb1 pt4 primary-color-dark">Syntax</h2>
|
|
{{- range . }}
|
|
{{- $signature := . }}
|
|
{{- if $.Params.function.returnType }}
|
|
{{- $signature = printf "%s ⟼ %s" . $.Params.function.returnType }}
|
|
{{- end }}
|
|
<pre class="f5 mb4 ph3 pv2 bg-light-gray overflow-x-auto" style="border-left:4px solid #0594CB;">
|
|
{{- $signature -}}
|
|
</pre>
|
|
{{- end }}
|
|
{{- end -}}
|