From 5705ad82fc91693560a10ae28f7bf22435fbefca Mon Sep 17 00:00:00 2001 From: Ken Swanson Date: Mon, 11 Mar 2024 17:25:27 -0500 Subject: [PATCH 1/2] Regenerated the `index.hbs` theme file to handle mobile sites Something changed with the MDBook theme that caused it to not render properly on mobile. Specifically, the site would come up with the sidebar open and the "close" button would not work. I fixed this by initializing a NEW MDBook, copying over the generated `index.hbs`, and then adding in the changes we have made to our `index.hbs` in the Lace Git History. Now it works correctly on the Firefox Mobile WebDev tool --- book/theme/index.hbs | 127 +++++++++++++++++++++++++------------------ 1 file changed, 73 insertions(+), 54 deletions(-) diff --git a/book/theme/index.hbs b/book/theme/index.hbs index 435a998e..506df891 100644 --- a/book/theme/index.hbs +++ b/book/theme/index.hbs @@ -1,11 +1,11 @@ - + {{ title }} {{#if is_print }} - + {{/if}} {{#if base_url}} @@ -15,22 +15,14 @@ {{> head}} - - - + - - {{#if favicon_svg}} {{/if}} @@ -62,18 +54,19 @@ {{#if mathjax_support}} - + {{/if}} - + +
- - - + + - + + +
{{> header}} -