summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html17
-rw-r--r--templates/feed.xml10
-rw-r--r--templates/list.html4
-rw-r--r--templates/partials/pageHeaderSm.html2
4 files changed, 12 insertions, 21 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>
diff --git a/templates/feed.xml b/templates/feed.xml
index 4cc2c17..083049e 100644
--- a/templates/feed.xml
+++ b/templates/feed.xml
@@ -1,9 +1,9 @@
1<?xml version="1.0" encoding="utf-8"?> 1<?xml version="1.0" encoding="utf-8"?>
2<feed xmlns="http://www.w3.org/2005/Atom"> 2<feed xmlns="http://www.w3.org/2005/Atom">
3 <title>$if(is_home)$$else$$title$ – $endif$$site.title$</title> 3 <title>$if(section.is_index)$$else$$title$ – $endif$$site.title$</title>
4 <link href="$feed.url.full$" rel="self"/> 4 <link href="$url.full$" rel="self"/>
5 <link href="$url.full$"/> 5 <link href="$page.url.full$"/>
6 <updated>$feed.last_update.rfc3339$</updated> 6 <updated>$pages.last_update.rfc3339$</updated>
7 <id>$url.full$</id> 7 <id>$url.full$</id>
8 $for(author)$ 8 $for(author)$
9 <author> 9 <author>
@@ -16,7 +16,7 @@
16 16
17 $for(pages)$ 17 $for(pages)$
18 $for(it.all)$ 18 $for(it.all)$
19 $if(it.date.rfc3339)$ 19 $if(it.date)$
20 <entry> 20 <entry>
21 <id>$it.url.full$</id> 21 <id>$it.url.full$</id>
22 <title type="html"><![CDATA[$it.title$]]></title> 22 <title type="html"><![CDATA[$it.title$]]></title>
diff --git a/templates/list.html b/templates/list.html
index 4d62d47..2d663e0 100644
--- a/templates/list.html
+++ b/templates/list.html
@@ -1,8 +1,8 @@
1$body$ 1$body$
2 2
3$if(categories.by_id)$ 3$if(categories)$
4 <ul class="c-hlist"> 4 <ul class="c-hlist">
5 $for(categories.by_id)$ 5 $for(categories)$
6 <li class="c-hlist__item"><strong>$it.key/uppercase$</strong> $it.value.name$</li> 6 <li class="c-hlist__item"><strong>$it.key/uppercase$</strong> $it.value.name$</li>
7 $endfor$ 7 $endfor$
8 </ul> 8 </ul>
diff --git a/templates/partials/pageHeaderSm.html b/templates/partials/pageHeaderSm.html
index 4255de0..92359fa 100644
--- a/templates/partials/pageHeaderSm.html
+++ b/templates/partials/pageHeaderSm.html
@@ -3,7 +3,7 @@ $-- | _.~-"""-----~`` ,-´ ' ' |' | ' '
3$-- '| .´ ,~'\ ).,__,)/,," ' . ' | | | ' .' 3$-- '| .´ ,~'\ ).,__,)/,," ' . ' | | | ' .'
4$-- |_ `~´ (/\\, (/\\, _' '_ _| ' |_ _' '_ 4$-- |_ `~´ (/\\, (/\\, _' '_ _| ' |_ _' '_
5 5
6<pre class="c-page-header__pre c-page__prefixed c-page__prefixed--pre u-mt0 $if(is_home)$u-hidden@sm-up$endif$"> 6<pre class="c-page-header__pre c-page__prefixed c-page__prefixed--pre u-mt0 $if(section.is_index)$u-hidden@sm-up$endif$">
7.| <strong> //\__</strong> ' .' | . | ' . ' 7.| <strong> //\__</strong> ' .' | . | ' . '
8 | <strong> _.~-"""-----~`` ,-´</strong> ' ' |' | ' ' 8 | <strong> _.~-"""-----~`` ,-´</strong> ' ' |' | ' '
9'| <strong>.´ ,~'\ ).,__,)/,," </strong> ' . ' | | | ' .' 9'| <strong>.´ ,~'\ ).,__,)/,," </strong> ' . ' | | | ' .'