From 8a00a004d85b6e126162dabf005a759317c22208 Mon Sep 17 00:00:00 2001 From: Sorin Davidoi Date: Sun, 18 Feb 2018 08:05:15 +0100 Subject: [PATCH] Handle some cases when JavaScript is disabled (#614) * feat(theme/index): Assume the sidebar is initially visible In case the inline script does not execute, the fallback is to show the sidebar. * feat(theme/index): Hide sidebar toggle and theme selector buttons when JavaScript is disabled Makes no sense to show them in this case since they do not work. --- src/theme/index.hbs | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/theme/index.hbs b/src/theme/index.hbs index 04fae848..64e1898f 100644 --- a/src/theme/index.hbs +++ b/src/theme/index.hbs @@ -1,5 +1,5 @@ - + {{ title }} @@ -41,6 +41,14 @@ } + + @@ -70,12 +78,14 @@