summaryrefslogtreecommitdiffstats
path: root/templates/layouts/page.html
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2021-01-08 11:45:30 +0100
committerVolpeon <git@volpeon.ink>2021-01-08 11:45:30 +0100
commit8f373e6c6d3f9d322041ba4d949c1b0c39ae8ea0 (patch)
tree3e4bd8c26b65a073d4580bc9f0076caceb234ce8 /templates/layouts/page.html
parentOptimized CSS for code blocks (diff)
downloadvolpeon.ink-8f373e6c6d3f9d322041ba4d949c1b0c39ae8ea0.tar.gz
volpeon.ink-8f373e6c6d3f9d322041ba4d949c1b0c39ae8ea0.tar.bz2
volpeon.ink-8f373e6c6d3f9d322041ba4d949c1b0c39ae8ea0.zip
Added section link to the header in regular pages, improved template structure, improved CSS variable names, keep prefix for specific page items on mobile
Diffstat (limited to 'templates/layouts/page.html')
-rw-r--r--templates/layouts/page.html32
1 files changed, 22 insertions, 10 deletions
diff --git a/templates/layouts/page.html b/templates/layouts/page.html
index 332a846..ee1a816 100644
--- a/templates/layouts/page.html
+++ b/templates/layouts/page.html
@@ -1,12 +1,24 @@
1<header class="c-page__header"> 1<main class="c-page l-container l-container--content l-container--pad-v">
2 <h1 class="c-page__prefixed c-page__prefixed--h1 c-page__header__title">$title$</h1> 2 <div class="c-page__content">
3 $if(date)$ 3 <header class="c-page__header">
4 <h2 class="c-page__header__meta">$date.yyyy_mm_dd$$if(category)$ in $category.name$$endif$</h2> 4 $if(menus.main.active)$
5 $elseif(category)$ 5 <div class="c-page__prefixed c-page__prefixed--backref c-page__header__backlink">
6 <h2 class="c-page__header__meta">in $category.name$</h2> 6 <a class="c-page__header__backlink__link" href="$menus.main.active.url$">
7 $endif$ 7 $menus.main.active.label$
8</header> 8 </a>
9 </div>
10 $endif$
11 <h1 class="c-page__prefixed c-page__prefixed--h1 c-page__header__title">$title$</h1>
12 $if(date)$
13 <h2 class="c-page__header__meta">$date.yyyy_mm_dd$$if(category)$ in $category.name$$endif$</h2>
14 $elseif(category)$
15 <h2 class="c-page__header__meta">in $category.name$</h2>
16 $endif$
17 </header>
9 18
10<section> 19 <section class="s-page">
11$body$ 20$body$
12</section> 21 </section>
22 </div>
23</main>
24