summaryrefslogtreecommitdiffstats
path: root/templates/layouts
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2022-07-31 10:00:03 +0200
committerVolpeon <git@volpeon.ink>2022-07-31 10:00:03 +0200
commit20c5ad5a7a737d721cb39b75852a79f20502da74 (patch)
tree217a5cf991d73b482f39553ca1908f891b0611d7 /templates/layouts
parentUpdate (diff)
downloadvolpeon.ink-20c5ad5a7a737d721cb39b75852a79f20502da74.tar.gz
volpeon.ink-20c5ad5a7a737d721cb39b75852a79f20502da74.tar.bz2
volpeon.ink-20c5ad5a7a737d721cb39b75852a79f20502da74.zip
Simplified "list" list layout code
Diffstat (limited to 'templates/layouts')
-rw-r--r--templates/layouts/categorized_list.html7
-rw-r--r--templates/layouts/list.html7
-rw-r--r--templates/layouts/page.html13
3 files changed, 15 insertions, 12 deletions
diff --git a/templates/layouts/categorized_list.html b/templates/layouts/categorized_list.html
index 1a1048a..67dc466 100644
--- a/templates/layouts/categorized_list.html
+++ b/templates/layouts/categorized_list.html
@@ -47,7 +47,12 @@ $body$
47 $elseif(it.layout.is_gallery-3)$ 47 $elseif(it.layout.is_gallery-3)$
48 $it.items:partials/gallery_card()$ 48 $it.items:partials/gallery_card()$
49 $else$ 49 $else$
50 $it.items:partials/list_card()$ 50 <div class="u-d-contents u-d-none@sm-lo">
51 $it.items:partials/list_card()$
52 </div>
53 <div class="u-d-contents u-d-none@sm-hi">
54 $it.items:partials/grid_card()$
55 </div>
51 $endif$ 56 $endif$
52 </div> 57 </div>
53 $if(it.omitted)$ 58 $if(it.omitted)$
diff --git a/templates/layouts/list.html b/templates/layouts/list.html
index 508ff4c..cf54c4b 100644
--- a/templates/layouts/list.html
+++ b/templates/layouts/list.html
@@ -24,7 +24,12 @@ $body$
24 $elseif(list_layout.is_gallery-3)$ 24 $elseif(list_layout.is_gallery-3)$
25 $list:partials/gallery_card()$ 25 $list:partials/gallery_card()$
26 $else$ 26 $else$
27 $list:partials/list_card()$ 27 <div class="u-d-contents u-d-none@sm-lo">
28 $list:partials/list_card()$
29 </div>
30 <div class="u-d-contents u-d-none@sm-hi">
31 $list:partials/grid_card()$
32 </div>
28 $endif$ 33 $endif$
29 </div> 34 </div>
30 </div> 35 </div>
diff --git a/templates/layouts/page.html b/templates/layouts/page.html
index 3ba8d54..234e50e 100644
--- a/templates/layouts/page.html
+++ b/templates/layouts/page.html
@@ -6,22 +6,15 @@
6 itemid="$url.full$" 6 itemid="$url.full$"
7> 7>
8 <article class="h-entry"> 8 <article class="h-entry">
9 $if(date)$
10 <time datetime="$date.yyyy_mm_dd$" class="o-badge u-mb-125 dt-published" itemprop="datePublished">
11 $date.long$
12 </time>
13 $endif$
14 9
15 $if(was_updated)$ 10 $if(last_update)$
16 <time datetime="$last_update.yyyy_mm_dd$" class="o-badge u-mb-125 dt-updated" itemprop="dateModified"> 11 <time datetime="$last_update.yyyy_mm_dd$" class="o-badge u-mb-125 dt-updated" itemprop="dateModified">
17 Updated: $last_update.long$ 12 $last_update.long$
18 </time> 13 </time>
19 $endif$ 14 $endif$
20 15
21 $if(draft)$ 16 $if(draft)$
22 <span class="o-badge u-mb-125"> 17 <span class="o-badge u-mb-125">Draft</span>
23 Draft
24 </span>
25 $endif$ 18 $endif$
26 19
27 <h1 class="o-heading o-heading--xxl u-mt-0 p-name" itemprop="name headline"> 20 <h1 class="o-heading o-heading--xxl u-mt-0 p-name" itemprop="name headline">