diff options
Diffstat (limited to 'templates/base.html')
-rw-r--r-- | templates/base.html | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/templates/base.html b/templates/base.html index 18d65c8..3e079a1 100644 --- a/templates/base.html +++ b/templates/base.html | |||
@@ -22,22 +22,13 @@ | |||
22 | <link href="$it.url$" type="application/atom+xml" rel="alternate" title="$it.title$ – $site.title$" /> | 22 | <link href="$it.url$" type="application/atom+xml" rel="alternate" title="$it.title$ – $site.title$" /> |
23 | $endfor$ | 23 | $endfor$ |
24 | 24 | ||
25 | <title>$if(is_home)$$else$$title$ – $endif$$site.title$</title> | 25 | <title>$if(section.is_index)$$else$$title$ – $endif$$site.title$</title> |
26 | 26 | ||
27 | <link rel="preload" href="/style.css" as="style" /> | 27 | <link rel="preload" href="/style.css" as="style" /> |
28 | <link rel="preload" href="/iosevka-term-ss09-regular.woff2" as="font" type="font/woff2" crossorigin /> | 28 | <link rel="preload" href="/iosevka-term-ss09-regular.woff2" as="font" type="font/woff2" crossorigin /> |
29 | <link rel="preload" href="/iosevka-term-ss09-bold.woff2" as="font" type="font/woff2" crossorigin /> | 29 | <link rel="preload" href="/iosevka-term-ss09-bold.woff2" as="font" type="font/woff2" crossorigin /> |
30 | 30 | ||
31 | <link rel="stylesheet" href="/style.css" /> | 31 | <link rel="stylesheet" href="/style.css" /> |
32 | $if(section.id)$ | ||
33 | <style> | ||
34 | .c-nav__item--$section.id$ { | ||
35 | border-color: var(--nav--item--active--fg); | ||
36 | color: var(--nav--item--active--fg); | ||
37 | font-weight: bold; | ||
38 | } | ||
39 | </style> | ||
40 | $endif$ | ||
41 | </head> | 32 | </head> |
42 | 33 | ||
43 | <body> | 34 | <body> |
@@ -45,14 +36,14 @@ | |||
45 | <div class="c-nav__items l-container"> | 36 | <div class="c-nav__items l-container"> |
46 | <a class="c-nav__logo" href="/" title="$site.title$">$site.logo$</a> | 37 | <a class="c-nav__logo" href="/" title="$site.title$">$site.logo$</a> |
47 | $for(menus.main)$ | 38 | $for(menus.main)$ |
48 | <a class="c-nav__item c-nav__item--$it.id$" href="$it.url$">$it.label$</a> | 39 | <a class="c-nav__item $if(it.active)$c-nav__item--active$endif$" href="$it.url$">$it.label$</a> |
49 | $endfor$ | 40 | $endfor$ |
50 | </div> | 41 | </div> |
51 | </nav> | 42 | </nav> |
52 | 43 | ||
53 | <main class="c-page s-page l-container l-container--content l-container--pad-v"> | 44 | <main class="c-page s-page l-container l-container--content l-container--pad-v"> |
54 | <div class="c-page__content"> | 45 | <div class="c-page__content"> |
55 | $if(is_home)$ | 46 | $if(section.is_index)$ |
56 | <header class="c-page-header u-hidden@sm-down" role="presentation"> | 47 | <header class="c-page-header u-hidden@sm-down" role="presentation"> |
57 | ${partials/pageHeader()} | 48 | ${partials/pageHeader()} |
58 | </header> | 49 | </header> |
@@ -66,7 +57,7 @@ ${page()} | |||
66 | </div> | 57 | </div> |
67 | </main> | 58 | </main> |
68 | 59 | ||
69 | $if(is_home)$ | 60 | $if(section.is_index)$ |
70 | <template id="header-sm"> | 61 | <template id="header-sm"> |
71 | ${partials/pageHeaderSm()} | 62 | ${partials/pageHeaderSm()} |
72 | </template> | 63 | </template> |