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}} +