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

github.com/vjeantet/hugo-theme-docport.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/shortcodes/c/hidden.html')
-rw-r--r--layouts/shortcodes/c/hidden.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/layouts/shortcodes/c/hidden.html b/layouts/shortcodes/c/hidden.html
new file mode 100644
index 0000000..aaebeed
--- /dev/null
+++ b/layouts/shortcodes/c/hidden.html
@@ -0,0 +1,5 @@
+{{ $name := .Get 0 }}
+{{ $value := .Get 1 }}
+{{ $options := .Get 2 }}
+{{ $multiple := cond (eq "multi" $options) true false }}
+<input type="hidden" name="{{$name}}" value="{{$value}}"> \ No newline at end of file