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/show.html')
-rw-r--r--layouts/shortcodes/c/show.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/layouts/shortcodes/c/show.html b/layouts/shortcodes/c/show.html
index 8eda479..637f430 100644
--- a/layouts/shortcodes/c/show.html
+++ b/layouts/shortcodes/c/show.html
@@ -8,5 +8,10 @@
{{ $conditionFix = replace $conditionFix ` or ` ` || ` }}
{{ $conditionFix = replaceRE `[^)]+has\s+('\w+')` ".includes($1)" $conditionFix }}
-<div id="{{$id}}" class="baz" style="display:none">{{.Inner | markdownify}}</div>
+<div id="{{$id}}" class="baz" style="display:none">
+{{with .Get 1}}
+<input type="hidden" value="true" name="{{.}}">
+{{end}}
+{{.Inner | markdownify}}</div>
<script type="text/javascript">$(registerShowIf('{{$id}}','{{$conditionFix}}'))</script>
+