diff options
Diffstat (limited to 'templates/base.html')
-rw-r--r-- | templates/base.html | 27 |
1 files changed, 4 insertions, 23 deletions
diff --git a/templates/base.html b/templates/base.html index b4a2953..da3dec9 100644 --- a/templates/base.html +++ b/templates/base.html | |||
@@ -45,33 +45,14 @@ | |||
45 | <main class="c-page s-page l-container l-container--content l-container--pad-v"> | 45 | <main class="c-page s-page l-container l-container--content l-container--pad-v"> |
46 | <div class="c-page__content"> | 46 | <div class="c-page__content"> |
47 | $if(section.is_index)$ | 47 | $if(section.is_index)$ |
48 | <header class="c-page-header u-hidden@sm-down" role="presentation"> | 48 | ${layouts/index()} |
49 | ${partials/pageHeader()} | 49 | $elseif(layout.is_dated_list)$ |
50 | </header> | 50 | ${layouts/dated_list()} |
51 | |||
52 | ${page()} | ||
53 | $elseif(pages)$ | ||
54 | ${list()} | ||
55 | $else$ | 51 | $else$ |
56 | ${page()} | 52 | ${layouts/page()} |
57 | $endif$ | 53 | $endif$ |
58 | </div> | 54 | </div> |
59 | </main> | 55 | </main> |
60 | |||
61 | $if(section.is_index)$ | ||
62 | <template id="header-sm"> | ||
63 | ${partials/pageHeaderSm()} | ||
64 | </template> | ||
65 | |||
66 | <script> | ||
67 | var headerEl = document.querySelector(".c-page-header"); | ||
68 | var headerTemplateEl = document.getElementById("header-sm"); | ||
69 | var headerSmEl = headerTemplateEl.content.cloneNode("true"); | ||
70 | |||
71 | headerEl.classList.remove("u-hidden@sm-down"); | ||
72 | headerEl.appendChild(headerSmEl); | ||
73 | </script> | ||
74 | $endif$ | ||
75 | </body> | 56 | </body> |
76 | 57 | ||
77 | </html> | 58 | </html> |