From c2d58158da2594bc2d6701eb60b25075631262be Mon Sep 17 00:00:00 2001 From: Gilles Rasigade Date: Sun, 10 May 2020 09:39:13 +0200 Subject: [PATCH] Revert HTML auto-formatting --- src/theme/index.hbs | 533 +++++++++++++++++++++----------------------- 1 file changed, 255 insertions(+), 278 deletions(-) diff --git a/src/theme/index.hbs b/src/theme/index.hbs index 9a0951a6..e27f6aa3 100644 --- a/src/theme/index.hbs +++ b/src/theme/index.hbs @@ -1,315 +1,292 @@ + + + + {{ title }} + {{#if is_print }} + + {{/if}} - - - - {{ title }} - {{#if is_print }} - - {{/if}} + + {{> head}} - - {{> head}} + + + + - - - - + + + + + - - - - - + + + + - - - - + + + + - - - - + + {{#each additional_css}} + + {{/each}} - - {{#each additional_css}} - - {{/each}} + {{#if mathjax_support}} + + + {{/if}} + + + + - {{#if mathjax_support}} - - - {{/if}} - + + + if (theme.startsWith('"') && theme.endsWith('"')) { + localStorage.setItem('mdbook-theme', theme.slice(1, theme.length - 1)); + } - - - if (theme.startsWith('"') && theme.endsWith('"')) { - localStorage.setItem('mdbook-theme', theme.slice(1, theme.length - 1)); + + + + + - if (sidebar.startsWith('"') && sidebar.endsWith('"')) { - localStorage.setItem('mdbook-sidebar', sidebar.slice(1, sidebar.length - 1)); - } - } catch (e) { } - - - - - - - - - - -
- -
- {{> header}} - - - - -
+
- {{#if livereload}} - - + +
+
+ {{{ content }}} +
+ + +
+
+ + + +
+ + {{#if livereload}} + + + {{/if}} - window.onbeforeunload = function () { - socket.close(); - } - - {{/if}} + {{#if google_analytics}} + + + {{/if}} - ga('create', '{{google_analytics}}', 'auto'); - ga('send', 'pageview'); - } - - {{/if}} + {{#if playpen_line_numbers}} + + {{/if}} + + {{#if playpen_copyable}} + + {{/if}} - {{#if playpen_line_numbers}} - - {{/if}} + {{#if playpen_js}} + + + + + + {{/if}} - {{#if playpen_copyable}} - - {{/if}} + {{#if search_js}} + + + + {{/if}} - {{#if playpen_js}} - - - - - - {{/if}} + + + - {{#if search_js}} - - - - {{/if}} + + {{#each additional_js}} + + {{/each}} - - - - - - {{#each additional_js}} - - {{/each}} - - {{#if is_print}} - {{#if mathjax_support}} - - {{else}} - + {{else}} + - {{/if}} - {{/if}} - - + + {{/if}} + {{/if}} +