diff options
author | Volpeon <git@volpeon.ink> | 2021-01-07 08:50:48 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2021-01-07 08:50:48 +0100 |
commit | ad478954cf77842364d03e1d5ee85e366e699ee7 (patch) | |
tree | 90359dfec83694a758878b37510d9dca1493ef43 /templates/layouts/page.html | |
parent | Improved subpage organization code in metadata filter (diff) | |
download | volpeon.ink-ad478954cf77842364d03e1d5ee85e366e699ee7.tar.gz volpeon.ink-ad478954cf77842364d03e1d5ee85e366e699ee7.tar.bz2 volpeon.ink-ad478954cf77842364d03e1d5ee85e366e699ee7.zip |
Improved general structure, resolve category name in metadata filter, added hideable nav items, added header for page layout
Diffstat (limited to 'templates/layouts/page.html')
-rw-r--r-- | templates/layouts/page.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/layouts/page.html b/templates/layouts/page.html new file mode 100644 index 0000000..332a846 --- /dev/null +++ b/templates/layouts/page.html | |||
@@ -0,0 +1,12 @@ | |||
1 | <header class="c-page__header"> | ||
2 | <h1 class="c-page__prefixed c-page__prefixed--h1 c-page__header__title">$title$</h1> | ||
3 | $if(date)$ | ||
4 | <h2 class="c-page__header__meta">$date.yyyy_mm_dd$$if(category)$ in $category.name$$endif$</h2> | ||
5 | $elseif(category)$ | ||
6 | <h2 class="c-page__header__meta">in $category.name$</h2> | ||
7 | $endif$ | ||
8 | </header> | ||
9 | |||
10 | <section> | ||
11 | $body$ | ||
12 | </section> | ||