diff options
| author | Volpeon <git@volpeon.ink> | 2021-01-08 11:45:30 +0100 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2021-01-08 11:45:30 +0100 |
| commit | 8f373e6c6d3f9d322041ba4d949c1b0c39ae8ea0 (patch) | |
| tree | 3e4bd8c26b65a073d4580bc9f0076caceb234ce8 /templates/base.html | |
| parent | Optimized CSS for code blocks (diff) | |
| download | volpeon.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/base.html')
| -rw-r--r-- | templates/base.html | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/templates/base.html b/templates/base.html index da3dec9..8682125 100644 --- a/templates/base.html +++ b/templates/base.html | |||
| @@ -36,23 +36,19 @@ | |||
| 36 | <nav class="c-nav"> | 36 | <nav class="c-nav"> |
| 37 | <div class="c-nav__items l-container"> | 37 | <div class="c-nav__items l-container"> |
| 38 | <a class="c-nav__logo" href="/" title="$site.title$">$site.logo$</a> | 38 | <a class="c-nav__logo" href="/" title="$site.title$">$site.logo$</a> |
| 39 | $for(menus.main)$ | 39 | $for(menus.main.items)$ |
| 40 | <a class="c-nav__item $if(it.active)$c-nav__item--active$endif$" href="$it.url$">$it.label$</a> | 40 | <a class="c-nav__item $if(it.active)$c-nav__item--active$endif$" href="$it.url$">$it.label$</a> |
| 41 | $endfor$ | 41 | $endfor$ |
| 42 | </div> | 42 | </div> |
| 43 | </nav> | 43 | </nav> |
| 44 | 44 | ||
| 45 | <main class="c-page s-page l-container l-container--content l-container--pad-v"> | 45 | $if(section.is_index)$ |
| 46 | <div class="c-page__content"> | ||
| 47 | $if(section.is_index)$ | ||
| 48 | ${layouts/index()} | 46 | ${layouts/index()} |
| 49 | $elseif(layout.is_dated_list)$ | 47 | $elseif(layout.is_dated_list)$ |
| 50 | ${layouts/dated_list()} | 48 | ${layouts/dated_list()} |
| 51 | $else$ | 49 | $else$ |
| 52 | ${layouts/page()} | 50 | ${layouts/page()} |
| 53 | $endif$ | 51 | $endif$ |
| 54 | </div> | ||
| 55 | </main> | ||
| 56 | </body> | 52 | </body> |
| 57 | 53 | ||
| 58 | </html> | 54 | </html> |
