diff options
author | Paul Twohey <twohey@users.noreply.github.com> | 2019-08-28 21:01:36 -0700 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-09-01 20:51:15 +0200 |
commit | 438f011ff52da9f09dfacd83c9693ee9ab07e7f8 (patch) | |
tree | e3ebe39a5bd5a8bb110f1256f8cb69ac55135a38 /layouts | |
parent | 99bd271b3574a1242e9d28765952abe49d1ef0be (diff) |
fix menu, docs, and posts 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 style them display: none
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/docs/baseof.html | 4 | ||||
-rw-r--r-- | layouts/posts/baseof.html | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/layouts/docs/baseof.html b/layouts/docs/baseof.html index 1592860..f35a6dc 100644 --- a/layouts/docs/baseof.html +++ b/layouts/docs/baseof.html @@ -7,7 +7,7 @@ </head> <body> - <input type="checkbox" style="display: none" id="menu-control" /> + <input type="checkbox" id="menu-control" /> <main class="flex container"> <aside class="book-menu fixed"> @@ -23,7 +23,7 @@ {{ template "toc" . }} </main> - + {{ partial "docs/inject/body" . }} {{ template "_internal/google_analytics_async.html" . }} </body> diff --git a/layouts/posts/baseof.html b/layouts/posts/baseof.html index ba4b91c..9821118 100644 --- a/layouts/posts/baseof.html +++ b/layouts/posts/baseof.html @@ -7,7 +7,7 @@ </head> <body> - <input type="checkbox" style="display: none" id="menu-control" /> + <input type="checkbox" id="menu-control" /> <main class="flex container"> <aside class="book-menu fixed"> {{ partial "docs/menu" . }} |