summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html4
-rw-r--r--templates/feed.xml50
-rw-r--r--templates/feed_entry.xml30
-rw-r--r--templates/layouts/categorized_list.html46
4 files changed, 74 insertions, 56 deletions
diff --git a/templates/base.html b/templates/base.html
index 5dc57e2..6c0c4a9 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -19,6 +19,10 @@
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 $if(feed)$
23 <link href="$feed.url.rel$" type="application/atom+xml" rel="alternate" title="$if(namespace.root.is_index)$$else$$title$ – $endif$$site.title$" />
24 $endif$
25
22 <title>$if(namespace.root.is_index)$$else$$title$ – $endif$$site.title$</title> 26 <title>$if(namespace.root.is_index)$$else$$title$ – $endif$$site.title$</title>
23 27
24 <link rel="preload" href="/style.css?$style_hash$" as="style" /> 28 <link rel="preload" href="/style.css?$style_hash$" as="style" />
diff --git a/templates/feed.xml b/templates/feed.xml
index a968205..ad665d2 100644
--- a/templates/feed.xml
+++ b/templates/feed.xml
@@ -1,10 +1,10 @@
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(section.is_index)$$else$$title$ – $endif$$site.title$</title> 3 <title>$if(namespace.root.is_index)$$else$$title$ – $endif$$site.title$</title>
4 <link href="$url.full$" rel="self"/> 4 <link href="$url.abs$" rel="self"/>
5 <link href="$page.url.full$"/> 5 <link href="$page.url.abs$"/>
6 <updated>$pages.last_update.rfc3339$</updated> 6 <updated>$last_update.rfc3339$</updated>
7 <id>$url.full$</id> 7 <id>$url.abs$</id>
8 $for(author)$ 8 $for(author)$
9 <author> 9 <author>
10 <name>$it.name$</name> 10 <name>$it.name$</name>
@@ -14,33 +14,15 @@
14 </author> 14 </author>
15 $endfor$ 15 $endfor$
16 16
17 $for(pages.all_dated)$ 17 $if(layout.is_categorized_list)$
18 <entry> 18 $for(pages.all)$
19 <id>$it.url.full$</id> 19 $for(it.pages.all)$
20 <title type="html"><![CDATA[$it.title$]]></title> 20 $it:feed_entry()$
21 $if(it.author)$ 21 $endfor$
22 $for(it.author)$ 22 $endfor$
23 <author> 23 $else$
24 <name>$it.name$</name> 24 $for(pages.all)$
25 $if(it.email)$ 25 $it:feed_entry()$
26 <email>$it.email$</email> 26 $endfor$
27 $endif$ 27 $endif$
28 </author>
29 $endfor$
30 $else$
31 $for(author)$
32 <author>
33 <name>$author.name$</name>
34 $if(author.email)$
35 <email>$author.email$</email>
36 $endif$
37 </author>
38 $endfor$
39 $endif$
40 <link href="$it.url.full$"/>
41 <published>$it.date.rfc3339$</published>
42 <updated>$it.last_update.rfc3339$</updated>
43 <content type="html"><![CDATA[$it.content$]]></content>
44 </entry>
45 $endfor$
46</feed> 28</feed>
diff --git a/templates/feed_entry.xml b/templates/feed_entry.xml
new file mode 100644
index 0000000..f4c5d47
--- /dev/null
+++ b/templates/feed_entry.xml
@@ -0,0 +1,30 @@
1<entry>
2 <id>$it.url.abs$</id>
3 <title>$it.title$</title>
4 <link rel="alternate" href="$it.url.abs$"/>
5 $if(it.author)$
6 $for(it.author)$
7 <author>
8 <name>$it.name$</name>
9 $if(it.email)$
10 <email>$it.email$</email>
11 $endif$
12 </author>
13 $endfor$
14 $else$
15 $for(author)$
16 <author>
17 <name>$author.name$</name>
18 $if(author.email)$
19 <email>$author.email$</email>
20 $endif$
21 </author>
22 $endfor$
23 $endif$
24 $if(it.date)$
25 <published>$it.date.rfc3339$</published>
26 $endif$
27 $if(it.last_update)$
28 <updated>$it.last_update.rfc3339$</updated>
29 $endif$
30</entry>
diff --git a/templates/layouts/categorized_list.html b/templates/layouts/categorized_list.html
index 8f39229..6e72194 100644
--- a/templates/layouts/categorized_list.html
+++ b/templates/layouts/categorized_list.html
@@ -8,28 +8,30 @@ $body$
8 8
9 <div class="c-post-list"> 9 <div class="c-post-list">
10 $for(pages.all)$ 10 $for(pages.all)$
11 <h2 class="c-post-list__category-header"> 11 $if(it.pages)$
12 $it.title$ 12 <h2 class="c-post-list__category-header">
13 </h2> 13 $it.title$
14 <div class="c-post-list__category-content"> 14 </h2>
15 $for(it.pages.all)$ 15 <div class="c-post-list__category-content">
16 <a href="$it.url.rel$" class="c-post-list__post c-card"> 16 $for(it.pages.all)$
17 <div class="c-card__content"> 17 <a href="$it.url.rel$" class="c-post-list__post c-card">
18 $it.title$ 18 <div class="c-card__content">
19 </div> 19 $it.title$
20 $if(pages.all.show_dates)$ 20 </div>
21 <time datetime="$it.date.yyyy_mm_dd$" class="c-card__content u-fs0"> 21 $if(pages.all.show_dates)$
22 <small class="u-dn@sm-hi"> 22 <time datetime="$it.date.yyyy_mm_dd$" class="c-card__content u-fs0">
23 $it.date.short$ 23 <small class="u-dn@sm-hi">
24 </small> 24 $it.date.short$
25 <small class="u-dn@sm-lo"> 25 </small>
26 $it.date.long$ 26 <small class="u-dn@sm-lo">
27 </small> 27 $it.date.long$
28 </time> 28 </small>
29 $endif$ 29 </time>
30 </a> 30 $endif$
31 $endfor$ 31 </a>
32 </div> 32 $endfor$
33 </div>
34 $endif$
33 $endfor$ 35 $endfor$
34 </div> 36 </div>
35 </div> 37 </div>