diff options
author | Volpeon <git@volpeon.ink> | 2021-06-05 17:12:33 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2021-06-05 17:12:33 +0200 |
commit | 385db81296bccf0c9e4341580d96e6a868f9d7f0 (patch) | |
tree | f8710c1d930f86be759e306bff5f274da49c026f /templates | |
parent | Improved heading link size (diff) | |
download | volpeon.ink-385db81296bccf0c9e4341580d96e6a868f9d7f0.tar.gz volpeon.ink-385db81296bccf0c9e4341580d96e6a868f9d7f0.tar.bz2 volpeon.ink-385db81296bccf0c9e4341580d96e6a868f9d7f0.zip |
Some design fixes, page list metadata improvements
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base.html | 10 | ||||
-rw-r--r-- | templates/feed.xml | 6 | ||||
-rw-r--r-- | templates/feed_entry.xml | 58 | ||||
-rw-r--r-- | templates/layouts/categorized_list.html | 28 | ||||
-rw-r--r-- | templates/layouts/list.html | 41 | ||||
-rw-r--r-- | templates/layouts/page.html | 2 |
6 files changed, 99 insertions, 46 deletions
diff --git a/templates/base.html b/templates/base.html index 6c0c4a9..5542401 100644 --- a/templates/base.html +++ b/templates/base.html | |||
@@ -22,6 +22,13 @@ | |||
22 | $if(feed)$ | 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$" /> | 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$ | 24 | $endif$ |
25 | $if(layout.is_categorized_list)$ | ||
26 | $for(pages.asc_title)$ | ||
27 | $if(it.feed)$ | ||
28 | <link href="$it.feed.url.rel$" type="application/atom+xml" rel="alternate" title="$it.title$ – $site.title$" /> | ||
29 | $endif$ | ||
30 | $endfor$ | ||
31 | $endif$ | ||
25 | 32 | ||
26 | <title>$if(namespace.root.is_index)$$else$$title$ – $endif$$site.title$</title> | 33 | <title>$if(namespace.root.is_index)$$else$$title$ – $endif$$site.title$</title> |
27 | 34 | ||
@@ -64,11 +71,12 @@ | |||
64 | ${layouts/index()} | 71 | ${layouts/index()} |
65 | $elseif(layout.is_categorized_list)$ | 72 | $elseif(layout.is_categorized_list)$ |
66 | ${layouts/categorized_list()} | 73 | ${layouts/categorized_list()} |
74 | $elseif(layout.is_list)$ | ||
75 | ${layouts/list()} | ||
67 | $else$ | 76 | $else$ |
68 | ${layouts/page()} | 77 | ${layouts/page()} |
69 | $endif$ | 78 | $endif$ |
70 | 79 | ||
71 | |||
72 | <footer class="c-footer"> | 80 | <footer class="c-footer"> |
73 | <div class="l-container l-container--pad-y u-pb0"> | 81 | <div class="l-container l-container--pad-y u-pb0"> |
74 | <pre class="c-footer__ascii u-dn@sm-lo">${layouts/ascii_fox()}</pre> | 82 | <pre class="c-footer__ascii u-dn@sm-lo">${layouts/ascii_fox()}</pre> |
diff --git a/templates/feed.xml b/templates/feed.xml index d03b73f..8a16804 100644 --- a/templates/feed.xml +++ b/templates/feed.xml | |||
@@ -15,13 +15,13 @@ | |||
15 | $endfor$ | 15 | $endfor$ |
16 | 16 | ||
17 | $if(layout.is_categorized_list)$ | 17 | $if(layout.is_categorized_list)$ |
18 | $for(pages.all)$ | 18 | $for(pages.desc_date)$ |
19 | $for(it.pages.all)$ | 19 | $for(it.pages.desc_date)$ |
20 | $it:feed_entry()$ | 20 | $it:feed_entry()$ |
21 | $endfor$ | 21 | $endfor$ |
22 | $endfor$ | 22 | $endfor$ |
23 | $else$ | 23 | $else$ |
24 | $for(pages.all)$ | 24 | $for(pages.desc_date)$ |
25 | $it:feed_entry()$ | 25 | $it:feed_entry()$ |
26 | $endfor$ | 26 | $endfor$ |
27 | $endif$ | 27 | $endif$ |
diff --git a/templates/feed_entry.xml b/templates/feed_entry.xml index 410a257..f8108f6 100644 --- a/templates/feed_entry.xml +++ b/templates/feed_entry.xml | |||
@@ -1,31 +1,27 @@ | |||
1 | $if(it.last_update)$ | 1 | <entry> |
2 | <entry> | 2 | <id>$it.url.full$</id> |
3 | <id>$it.url.full$</id> | 3 | <title><![CDATA[$it.title$]]></title> |
4 | <title><![CDATA[$it.title$]]></title> | 4 | <link href="$it.url.full$"/> |
5 | <link href="$it.url.full$"/> | 5 | <published>$it.date.rfc3339$</published> |
6 | $if(it.date)$ | 6 | <updated>$it.last_update.rfc3339$</updated> |
7 | <published>$it.date.rfc3339$</published> | 7 | $if(it.author)$ |
8 | $endif$ | 8 | $for(it.author)$ |
9 | <updated>$it.last_update.rfc3339$</updated> | 9 | <author> |
10 | $if(it.author)$ | 10 | <name>$it.name$</name> |
11 | $for(it.author)$ | 11 | $if(it.email)$ |
12 | <author> | 12 | <email>$it.email$</email> |
13 | <name>$it.name$</name> | 13 | $endif$ |
14 | $if(it.email)$ | 14 | </author> |
15 | <email>$it.email$</email> | 15 | $endfor$ |
16 | $endif$ | 16 | $else$ |
17 | </author> | 17 | $for(author)$ |
18 | $endfor$ | 18 | <author> |
19 | $else$ | 19 | <name>$author.name$</name> |
20 | $for(author)$ | 20 | $if(author.email)$ |
21 | <author> | 21 | <email>$author.email$</email> |
22 | <name>$author.name$</name> | 22 | $endif$ |
23 | $if(author.email)$ | 23 | </author> |
24 | <email>$author.email$</email> | 24 | $endfor$ |
25 | $endif$ | 25 | $endif$ |
26 | </author> | 26 | <content type="html"><![CDATA[$it.content$]]></content> |
27 | $endfor$ | 27 | </entry> |
28 | $endif$ | ||
29 | <content type="html"><![CDATA[$it.content$]]></content> | ||
30 | </entry> | ||
31 | $endif$ | ||
diff --git a/templates/layouts/categorized_list.html b/templates/layouts/categorized_list.html index 6e72194..89bea78 100644 --- a/templates/layouts/categorized_list.html +++ b/templates/layouts/categorized_list.html | |||
@@ -7,18 +7,18 @@ $body$ | |||
7 | </div> | 7 | </div> |
8 | 8 | ||
9 | <div class="c-post-list"> | 9 | <div class="c-post-list"> |
10 | $for(pages.all)$ | 10 | $for(pages.asc_title)$ |
11 | $if(it.pages)$ | 11 | $if(it.pages)$ |
12 | <h2 class="c-post-list__category-header"> | 12 | <h2 class="c-post-list__category-header"> |
13 | $it.title$ | 13 | $it.title$ |
14 | </h2> | 14 | </h2> |
15 | <div class="c-post-list__category-content"> | 15 | <div class="c-post-list__category-content"> |
16 | $for(it.pages.all)$ | 16 | $if(pages.asc_title.show_dates)$ |
17 | <a href="$it.url.rel$" class="c-post-list__post c-card"> | 17 | $for(it.pages.desc_date)$ |
18 | <div class="c-card__content"> | 18 | <a href="$it.url.rel$" class="c-post-list__post c-card"> |
19 | $it.title$ | 19 | <div class="c-card__content"> |
20 | </div> | 20 | $it.title$ |
21 | $if(pages.all.show_dates)$ | 21 | </div> |
22 | <time datetime="$it.date.yyyy_mm_dd$" class="c-card__content u-fs0"> | 22 | <time datetime="$it.date.yyyy_mm_dd$" class="c-card__content u-fs0"> |
23 | <small class="u-dn@sm-hi"> | 23 | <small class="u-dn@sm-hi"> |
24 | $it.date.short$ | 24 | $it.date.short$ |
@@ -27,9 +27,17 @@ $body$ | |||
27 | $it.date.long$ | 27 | $it.date.long$ |
28 | </small> | 28 | </small> |
29 | </time> | 29 | </time> |
30 | $endif$ | 30 | </a> |
31 | </a> | 31 | $endfor$ |
32 | $endfor$ | 32 | $else$ |
33 | $for(it.pages.asc_title)$ | ||
34 | <a href="$it.url.rel$" class="c-post-list__post c-card"> | ||
35 | <div class="c-card__content"> | ||
36 | $it.title$ | ||
37 | </div> | ||
38 | </a> | ||
39 | $endfor$ | ||
40 | $endif$ | ||
33 | </div> | 41 | </div> |
34 | $endif$ | 42 | $endif$ |
35 | $endfor$ | 43 | $endfor$ |
diff --git a/templates/layouts/list.html b/templates/layouts/list.html new file mode 100644 index 0000000..1c6398a --- /dev/null +++ b/templates/layouts/list.html | |||
@@ -0,0 +1,41 @@ | |||
1 | <section class="l-section l-section--no-head"> | ||
2 | <div class="l-container l-container--pad-x l-container--pad-y l-container--content"> | ||
3 | <div class="s-headlines s-colored-links"> | ||
4 | <h1 class="u-mt0"><span class="s-headlines__title-inner">$title$</span></h1> | ||
5 | |||
6 | $body$ | ||
7 | </div> | ||
8 | |||
9 | <div class="c-post-list"> | ||
10 | <div class="c-post-list__category-content"> | ||
11 | $if(show_dates)$ | ||
12 | $for(pages.desc_date)$ | ||
13 | <a href="$it.url.rel$" class="c-post-list__post c-card"> | ||
14 | <div class="c-card__content"> | ||
15 | $it.title$ | ||
16 | </div> | ||
17 | <time datetime="$it.date.yyyy_mm_dd$" class="c-card__content u-fs0"> | ||
18 | <small class="u-dn@sm-hi"> | ||
19 | $it.date.short$ | ||
20 | </small> | ||
21 | <small class="u-dn@sm-lo"> | ||
22 | $it.date.long$ | ||
23 | </small> | ||
24 | </time> | ||
25 | </a> | ||
26 | $endfor$ | ||
27 | $else$ | ||
28 | $for(pages.asc_title)$ | ||
29 | <a href="$it.url.rel$" class="c-post-list__post c-card"> | ||
30 | <div class="c-card__content"> | ||
31 | $it.title$ | ||
32 | </div> | ||
33 | </a> | ||
34 | $endfor$ | ||
35 | $endif$ | ||
36 | </div> | ||
37 | </div> | ||
38 | </div> | ||
39 | </section> | ||
40 | |||
41 | |||
diff --git a/templates/layouts/page.html b/templates/layouts/page.html index 32ceb98..e5781a8 100644 --- a/templates/layouts/page.html +++ b/templates/layouts/page.html | |||
@@ -1,4 +1,4 @@ | |||
1 | <section class="l-section l-section--fullscreen l-section--no-head l-section--body"> | 1 | <section class="l-section l-section--no-head l-section--body"> |
2 | <div class="l-container l-container--pad-x l-container--pad-y l-container--content s-colored-links s-headlines s-headlines--body s-body"> | 2 | <div class="l-container l-container--pad-x l-container--pad-y l-container--content s-colored-links s-headlines s-headlines--body s-body"> |
3 | $if(show_date)$ | 3 | $if(show_date)$ |
4 | <div class="s-body__meta"> | 4 | <div class="s-body__meta"> |