diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base.html | 2 | ||||
-rw-r--r-- | templates/layouts/dated_list.html | 25 | ||||
-rw-r--r-- | templates/layouts/index.html | 9 |
3 files changed, 1 insertions, 35 deletions
diff --git a/templates/base.html b/templates/base.html index 3afa0f0..49b2285 100644 --- a/templates/base.html +++ b/templates/base.html | |||
@@ -47,8 +47,6 @@ | |||
47 | 47 | ||
48 | $if(section.is_index)$ | 48 | $if(section.is_index)$ |
49 | ${layouts/index()} | 49 | ${layouts/index()} |
50 | $elseif(layout.is_dated_list)$ | ||
51 | ${layouts/dated_list()} | ||
52 | $elseif(layout.is_categorized_list)$ | 50 | $elseif(layout.is_categorized_list)$ |
53 | ${layouts/categorized_list()} | 51 | ${layouts/categorized_list()} |
54 | $else$ | 52 | $else$ |
diff --git a/templates/layouts/dated_list.html b/templates/layouts/dated_list.html deleted file mode 100644 index 8c5de69..0000000 --- a/templates/layouts/dated_list.html +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
1 | <main class="c-page s-page l-container l-container--content l-container--pad-v"> | ||
2 | <div class="c-page__content"> | ||
3 | <h1 class="c-page__prefixed c-page__prefixed--h1">$title$</h1> | ||
4 | $body$ | ||
5 | |||
6 | $if(categories)$ | ||
7 | <ul class="c-hlist"> | ||
8 | $for(categories)$ | ||
9 | <li class="c-hlist__item"><strong>$it.key/uppercase$</strong> $it.value.name$</li> | ||
10 | $endfor$ | ||
11 | </ul> | ||
12 | $endif$ | ||
13 | |||
14 | $for(pages.by_year)$ | ||
15 | <ul> | ||
16 | $for(it.value)$ | ||
17 | <li class="c-page__prefixed c-page__prefixed--ref"> | ||
18 | <a href="$it.url.rel$">$it.category.id/uppercase$ $it.date.yyyy_mm_dd$ - $it.title$</a> | ||
19 | </li> | ||
20 | $endfor$ | ||
21 | </ul> | ||
22 | $endfor$ | ||
23 | </div> | ||
24 | </main> | ||
25 | |||
diff --git a/templates/layouts/index.html b/templates/layouts/index.html index 21e6293..61edec2 100644 --- a/templates/layouts/index.html +++ b/templates/layouts/index.html | |||
@@ -42,11 +42,4 @@ $body$ | |||
42 | |_ <strong>`~´ (/\\, (/\\, </strong> _' '_ _| ' |_ _' '_</pre> | 42 | |_ <strong>`~´ (/\\, (/\\, </strong> _' '_ _| ' |_ _' '_</pre> |
43 | </template> | 43 | </template> |
44 | 44 | ||
45 | <script> | 45 | <script src="/index.js" type="text/javascript"></script> |
46 | var headerEl = document.querySelector(".c-hero"); | ||
47 | var headerTemplateEl = document.getElementById("header-sm"); | ||
48 | var headerSmEl = headerTemplateEl.content.cloneNode("true"); | ||
49 | |||
50 | headerEl.classList.remove("u-hidden@sm-down"); | ||
51 | headerEl.appendChild(headerSmEl); | ||
52 | </script> | ||