diff options
-rw-r--r-- | exampleSite/content/checklist/webappsec/02_vulnerabilityreporting.md | 2 | ||||
-rw-r--r-- | layouts/shortcodes/c/show.html | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/exampleSite/content/checklist/webappsec/02_vulnerabilityreporting.md b/exampleSite/content/checklist/webappsec/02_vulnerabilityreporting.md index 1c2e997..195bea3 100644 --- a/exampleSite/content/checklist/webappsec/02_vulnerabilityreporting.md +++ b/exampleSite/content/checklist/webappsec/02_vulnerabilityreporting.md @@ -10,7 +10,7 @@ Because no system is entirely free of security issues, it's important to provide {{</c/choices>}} -{{<c/show `{app_vuln_report_way} == 'no'` >}} +{{<c/show `{app_vuln_report_way} == 'no'` warn_app_vuln_report_way_no >}} {{%notice warning%}} **Warning — possible medium-risk issue**\ \ 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> + |