From 99bd271b3574a1242e9d28765952abe49d1ef0be Mon Sep 17 00:00:00 2001 From: Paul Twohey Date: Wed, 28 Aug 2019 21:00:00 -0700 Subject: fix expand and tabs shortcodes to work with strict Content-Security-Policy When the Content-Security-Policy header has "style-src 'self';" inine style elements like style="display: none" are not honored by browsers, so add CSS to the markup classes and style them display: none --- layouts/shortcodes/expand.html | 2 +- layouts/shortcodes/tabs.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'layouts') diff --git a/layouts/shortcodes/expand.html b/layouts/shortcodes/expand.html index 547fb3f..d6b7522 100644 --- a/layouts/shortcodes/expand.html +++ b/layouts/shortcodes/expand.html @@ -4,7 +4,7 @@ {{ default "Expand" (.Get 0) }} {{ default "↕" (.Get 1) }} - +
{{ .Inner | markdownify }}
diff --git a/layouts/shortcodes/tabs.html b/layouts/shortcodes/tabs.html index 88bb8e7..c49b141 100644 --- a/layouts/shortcodes/tabs.html +++ b/layouts/shortcodes/tabs.html @@ -4,7 +4,7 @@
{{ range $index, $tab := .Scratch.Get $group }} - + -- cgit v1.2.3