summaryrefslogtreecommitdiffstats
path: root/templates/partials/gallery_card.html
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/partials/gallery_card.html
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/partials/gallery_card.html')
-rw-r--r--templates/partials/gallery_card.html34
1 files changed, 24 insertions, 10 deletions
diff --git a/templates/partials/gallery_card.html b/templates/partials/gallery_card.html
index a340148..4728461 100644
--- a/templates/partials/gallery_card.html
+++ b/templates/partials/gallery_card.html
@@ -1,11 +1,12 @@
1$if(it.thumbnail)$
2<a 1<a
3 href="$it.url.rel$" 2 href="$it.url.rel$"
4 class="l-card-list__card c-card t-raised h-entry" 3 class="l-card-list__card c-card t-raised h-entry"
5 itemprop="dataFeedElement" 4 itemprop="dataFeedElement"
6 itemscope 5 itemscope
7 itemtype="https://schema.org/$it.schema_type$" 6 itemtype="https://schema.org/$it.schema_type$"
8 $if(it.rel)$rel="$it.rel$"$endif$ 7 $if(it.rel)$
8 rel="$it.rel$"
9 $endif$
9> 10>
10 <link itemprop="thumbnailUrl" href="$it.thumbnail.full$" /> 11 <link itemprop="thumbnailUrl" href="$it.thumbnail.full$" />
11 12
@@ -32,14 +33,24 @@ $if(it.thumbnail)$
32 $if(it.subtitle)$ 33 $if(it.subtitle)$
33 <div> 34 <div>
34 <strong class="p-name" itemprop="name headline">$it.title$</strong> 35 <strong class="p-name" itemprop="name headline">$it.title$</strong>
35 $if(it.draft)$<span class="o-badge u-ml-100">Draft</span>$endif$ 36 $if(it.draft)$
37 <span class="o-badge u-ml-100">Draft</span>
38 $endif$
36 </div> 39 </div>
37 <small class="u-d-block">$it.subtitle$</small> 40 <small class="u-d-block">
41 $it.subtitle$
42 </small>
38 $elseif(it.category)$ 43 $elseif(it.category)$
39 <small class="u-d-block">$it.category$</small> 44 <small class="u-d-block">
45 $it.category$
46 </small>
40 <div> 47 <div>
41 <strong class="p-name" itemprop="name headline">$it.title$</strong> 48 <strong class="p-name" itemprop="name headline">
42 $if(it.draft)$<span class="o-badge u-ml-100">Draft</span>$endif$ 49 $it.title$
50 </strong>
51 $if(it.draft)$
52 <span class="o-badge u-ml-100">Draft</span>
53 $endif$
43 </div> 54 </div>
44 $elseif(it.show_date)$ 55 $elseif(it.show_date)$
45 <small class="u-d-block"> 56 <small class="u-d-block">
@@ -49,13 +60,17 @@ $if(it.thumbnail)$
49 </small> 60 </small>
50 <div> 61 <div>
51 <strong class="p-name" itemprop="name headline">$it.title$</strong> 62 <strong class="p-name" itemprop="name headline">$it.title$</strong>
52 $if(it.draft)$<span class="o-badge u-ml-100">Draft</span>$endif$ 63 $if(it.draft)$
64 <span class="o-badge u-ml-100">Draft</span>
65 $endif$
53 </div> 66 </div>
54 $else$ 67 $else$
55 <span class="p-name" itemprop="name headline"> 68 <span class="p-name" itemprop="name headline">
56 $it.title$ 69 $it.title$
57 </span> 70 </span>
58 $if(it.draft)$<span class="o-badge u-ml-100">Draft</span>$endif$ 71 $if(it.draft)$
72 <span class="o-badge u-ml-100">Draft</span>
73 $endif$
59 $endif$ 74 $endif$
60 </div> 75 </div>
61 $if(it.post_icon)$ 76 $if(it.post_icon)$
@@ -65,4 +80,3 @@ $if(it.thumbnail)$
65 $endif$ 80 $endif$
66 </div> 81 </div>
67</a> 82</a>
68$endif$