diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base.html | 2 | ||||
-rw-r--r-- | templates/layouts/categorized_list.html | 22 | ||||
-rw-r--r-- | templates/layouts/page.html | 4 |
3 files changed, 25 insertions, 3 deletions
diff --git a/templates/base.html b/templates/base.html index 08c85bb..3afa0f0 100644 --- a/templates/base.html +++ b/templates/base.html | |||
@@ -49,6 +49,8 @@ | |||
49 | ${layouts/index()} | 49 | ${layouts/index()} |
50 | $elseif(layout.is_dated_list)$ | 50 | $elseif(layout.is_dated_list)$ |
51 | ${layouts/dated_list()} | 51 | ${layouts/dated_list()} |
52 | $elseif(layout.is_categorized_list)$ | ||
53 | ${layouts/categorized_list()} | ||
52 | $else$ | 54 | $else$ |
53 | ${layouts/page()} | 55 | ${layouts/page()} |
54 | $endif$ | 56 | $endif$ |
diff --git a/templates/layouts/categorized_list.html b/templates/layouts/categorized_list.html new file mode 100644 index 0000000..d213bb8 --- /dev/null +++ b/templates/layouts/categorized_list.html | |||
@@ -0,0 +1,22 @@ | |||
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 | $for(pages.by_category)$ | ||
7 | <h2 class="c-page__prefixed c-page__prefixed--h2"> | ||
8 | $for(it.value/first)$ | ||
9 | $it.category.name$ | ||
10 | $endfor$ | ||
11 | </h2> | ||
12 | <ul> | ||
13 | $for(it.value)$ | ||
14 | <li class="c-page__prefixed c-page__prefixed--ref"> | ||
15 | <a href="$it.url.rel$">$it.title$</a> | ||
16 | </li> | ||
17 | $endfor$ | ||
18 | </ul> | ||
19 | $endfor$ | ||
20 | </div> | ||
21 | </main> | ||
22 | |||
diff --git a/templates/layouts/page.html b/templates/layouts/page.html index 61bcacd..640df18 100644 --- a/templates/layouts/page.html +++ b/templates/layouts/page.html | |||
@@ -13,9 +13,7 @@ | |||
13 | </div> | 13 | </div> |
14 | $endif$ | 14 | $endif$ |
15 | <h1 class="c-page__prefixed c-page__prefixed--h1 c-page__header__title">$title$</h1> | 15 | <h1 class="c-page__prefixed c-page__prefixed--h1 c-page__header__title">$title$</h1> |
16 | $if(date)$ | 16 | $if(category)$ |
17 | <h2 class="c-page__header__meta">$date.yyyy_mm_dd$$if(category)$ in $category.name$$endif$</h2> | ||
18 | $elseif(category)$ | ||
19 | <h2 class="c-page__header__meta">in $category.name$</h2> | 17 | <h2 class="c-page__header__meta">in $category.name$</h2> |
20 | $endif$ | 18 | $endif$ |
21 | </header> | 19 | </header> |