summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2021-05-10 16:41:05 +0200
committerVolpeon <git@volpeon.ink>2021-05-10 16:41:05 +0200
commita48d05d1d5fcff414359c8ba6cc8f38467aebdeb (patch)
tree3542bf116c910a1bb42b40d8531f60c2c2498b08 /templates
parentUpdate (diff)
downloadvolpeon.ink-a48d05d1d5fcff414359c8ba6cc8f38467aebdeb.tar.gz
volpeon.ink-a48d05d1d5fcff414359c8ba6cc8f38467aebdeb.tar.bz2
volpeon.ink-a48d05d1d5fcff414359c8ba6cc8f38467aebdeb.zip
Refactoring to fully take advantage of Make
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html13
-rw-r--r--templates/layouts/index.html4
-rw-r--r--templates/layouts/page.html12
3 files changed, 11 insertions, 18 deletions
diff --git a/templates/base.html b/templates/base.html
index cd1e869..a5d29b5 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -19,14 +19,7 @@
19 <meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$" /> 19 <meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$" />
20 $endif$ 20 $endif$
21 21
22 $for(feeds)$ 22 <title>$if(namespace.root.is_index)$$else$$title$ – $endif$$site.title$</title>
23 <link href="$it.url$" type="application/atom+xml" rel="alternate" title="$it.title$ – $site.title$" />
24 $endfor$
25 $if(feed)$
26 <link href="$feed.url.rel$" type="application/atom+xml" rel="alternate" title="$if(section.is_index)$$else$$title$ – $endif$$site.title$" />
27 $endif$
28
29 <title>$if(section.is_index)$$else$$title$ – $endif$$site.title$</title>
30 23
31 <link rel="preload" href="/style.css" as="style" /> 24 <link rel="preload" href="/style.css" as="style" />
32 <link rel="preload" href="/symbols.svg" as="image" type="image/svg+xml" /> 25 <link rel="preload" href="/symbols.svg" as="image" type="image/svg+xml" />
@@ -46,7 +39,7 @@
46 </svg> 39 </svg>
47 </span> 40 </span>
48 </a> 41 </a>
49 $if(section.is_index)$ 42 $if(namespace.root.is_index)$
50 $else$ 43 $else$
51 $for(menus.main.items)$ 44 $for(menus.main.items)$
52 $if(it.active)$ 45 $if(it.active)$
@@ -61,7 +54,7 @@
61 </nav> 54 </nav>
62 55
63 <main> 56 <main>
64 $if(section.is_index)$ 57 $if(namespace.root.is_index)$
65${layouts/index()} 58${layouts/index()}
66 $elseif(layout.is_categorized_list)$ 59 $elseif(layout.is_categorized_list)$
67${layouts/categorized_list()} 60${layouts/categorized_list()}
diff --git a/templates/layouts/index.html b/templates/layouts/index.html
index 6d4c776..45ac82e 100644
--- a/templates/layouts/index.html
+++ b/templates/layouts/index.html
@@ -59,13 +59,13 @@ $body$
59 </svg> 59 </svg>
60 </span> 60 </span>
61 <span class="c-outer-button__content"> 61 <span class="c-outer-button__content">
62 $subsections.projects.title$ 62 $pages.by_id.projects.title$
63 </span> 63 </span>
64 </a> 64 </a>
65 </header> 65 </header>
66 66
67 <div class="l-container l-container--pad-x l-container--pad-y l-project-grid"> 67 <div class="l-container l-container--pad-x l-container--pad-y l-project-grid">
68 $for(subsections.projects.pages)$ 68 $for(pages.by_id.projects.pages.all)$
69 <a class="c-project" href="$it.url.rel$"> 69 <a class="c-project" href="$it.url.rel$">
70 $if(it.preview)$ 70 $if(it.preview)$
71 <img class="c-project__picture" src="$it.preview.rel$" /> 71 <img class="c-project__picture" src="$it.preview.rel$" />
diff --git a/templates/layouts/page.html b/templates/layouts/page.html
index 2093f8c..f89a692 100644
--- a/templates/layouts/page.html
+++ b/templates/layouts/page.html
@@ -1,12 +1,12 @@
1<section class="l-section l-section--fullscreen l-section--no-head"> 1<section class="l-section l-section--fullscreen l-section--no-head">
2 <div class="l-container l-container--pad-x l-container--pad-y l-container--content s-colored-links s-headlines s-body"> 2 <div class="l-container l-container--pad-x l-container--pad-y l-container--content s-colored-links s-headlines s-body">
3 <h1 class="u-mt0"><span class="s-headlines__title-inner">$title$</span></h1> 3 $if(category.show_date)$
4 4 <div class="s-body__meta">
5 <div class="s-body__meta">
6 $if(category.show_date)$
7 $date.long$ 5 $date.long$
8 $endif$ 6 </div>
9 </div> 7 $endif$
8
9 <h1 class="u-mt0"><span class="s-headlines__title-inner">$title$</span></h1>
10 10
11$body$ 11$body$
12 </div> 12 </div>