Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/gohugoioTheme2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/documentation/functions-signature.html')
-rw-r--r--layouts/partials/documentation/functions-signature.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/layouts/partials/documentation/functions-signature.html b/layouts/partials/documentation/functions-signature.html
new file mode 100644
index 0000000..04a7480
--- /dev/null
+++ b/layouts/partials/documentation/functions-signature.html
@@ -0,0 +1,14 @@
+{{ if isset .Params "signature" -}}
+ {{- with .Params.signature }}
+ <h2 class="minor mb-1 pt-4 text-steel-900">Syntax</h2>
+ {{- range . }}
+ <pre
+ class="text-base mb-4 px-3 py-2 bg-gray-300"
+ style="border-left:4px solid #0594CB;">
+ {{- . -}}
+ </pre
+ >
+ {{- end }}
+ {{- end -}}
+{{ end }}
+{{/* The inline style overrides `pre` styling defaults */}}