summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2020-12-30 09:06:31 +0100
committerVolpeon <git@volpeon.ink>2020-12-30 09:06:31 +0100
commit3ab8981195dbbdc553fbe1a14178b6793a81fa3b (patch)
treeeee7ce7de75903d0140245dd1d39686c73113bd3 /templates
parentFixed regression: Category showed up in child pages as well (diff)
downloadvolpeon.ink-3ab8981195dbbdc553fbe1a14178b6793a81fa3b.tar.gz
volpeon.ink-3ab8981195dbbdc553fbe1a14178b6793a81fa3b.tar.bz2
volpeon.ink-3ab8981195dbbdc553fbe1a14178b6793a81fa3b.zip
Revert to old category metadata collection, add support for authors
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html6
-rw-r--r--templates/categoryRef.html6
-rw-r--r--templates/feed.xml27
3 files changed, 33 insertions, 6 deletions
diff --git a/templates/base.html b/templates/base.html
index 9574d08..4b8ea1e 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -6,8 +6,8 @@
6 <meta name="viewport" content="width=device-width, initial-scale=1" /> 6 <meta name="viewport" content="width=device-width, initial-scale=1" />
7 <meta name="robots" content="noindex" /> 7 <meta name="robots" content="noindex" />
8 <link rel="shortcut icon" href="/favicon.ico" /> 8 <link rel="shortcut icon" href="/favicon.ico" />
9 $for(author-meta)$ 9 $for(author)$
10 <meta name="author" content="$author-meta$" /> 10 <meta name="author" content="$it.name$$if(it.email)$ <$it.email$>$endif$" />
11 $endfor$ 11 $endfor$
12 $if(date-meta)$ 12 $if(date-meta)$
13 <meta name="dcterms.date" content="$date-meta$" /> 13 <meta name="dcterms.date" content="$date-meta$" />
@@ -53,7 +53,7 @@ $body$
53 53
54 $if(section.is_blog)$ 54 $if(section.is_blog)$
55 $if(pages.not_empty)$ 55 $if(pages.not_empty)$
56 ${categories.blog:categoryRef()} 56 ${categoryRef()}
57 ${pagelistByYear()} 57 ${pagelistByYear()}
58 $endif$ 58 $endif$
59 $endif$ 59 $endif$
diff --git a/templates/categoryRef.html b/templates/categoryRef.html
index 5715fa8..58dc5fe 100644
--- a/templates/categoryRef.html
+++ b/templates/categoryRef.html
@@ -1,7 +1,7 @@
1$if(it)$ 1$if(categories)$
2 <ul class="c-hlist"> 2 <ul class="c-hlist">
3 $for(it/pairs)$ 3 $for(categories)$
4 <li class="c-hlist__item"><strong>$it.key/uppercase$</strong>: $it.value$</li> 4 <li class="c-hlist__item"><strong>$it.key/uppercase$</strong>: $it.value.name$ ($it.value.count$)</li>
5 $endfor$ 5 $endfor$
6 </ul> 6 </ul>
7$endif$ 7$endif$
diff --git a/templates/feed.xml b/templates/feed.xml
index 68d2fc4..f1439eb 100644
--- a/templates/feed.xml
+++ b/templates/feed.xml
@@ -5,6 +5,14 @@
5 <link href="$url.full$"/> 5 <link href="$url.full$"/>
6 <updated>$feed.last_update.rfc3339$</updated> 6 <updated>$feed.last_update.rfc3339$</updated>
7 <id>$url.full$</id> 7 <id>$url.full$</id>
8 $for(author)$
9 <author>
10 <name>$it.name$</name>
11 $if(it.email)$
12 <email>$it.email$</email>
13 $endif$
14 </author>
15 $endfor$
8 16
9 $for(pages)$ 17 $for(pages)$
10 $for(it.all)$ 18 $for(it.all)$
@@ -12,6 +20,25 @@
12 <entry> 20 <entry>
13 <id>$it.url.full$</id> 21 <id>$it.url.full$</id>
14 <title type="html"><![CDATA[$it.title$]]></title> 22 <title type="html"><![CDATA[$it.title$]]></title>
23 $if(it.author)$
24 $for(it.author)$
25 <author>
26 <name>$it.name$</name>
27 $if(it.email)$
28 <email>$it.email$</email>
29 $endif$
30 </author>
31 $endfor$
32 $else$
33 $for(author)$
34 <author>
35 <name>$author.name$</name>
36 $if(author.email)$
37 <email>$author.email$</email>
38 $endif$
39 </author>
40 $endfor$
41 $endif$
15 <link href="$it.url.full$"/> 42 <link href="$it.url.full$"/>
16 <published>$it.date.rfc3339$</published> 43 <published>$it.date.rfc3339$</published>
17 <updated>$it.date.rfc3339$</updated> 44 <updated>$it.date.rfc3339$</updated>