diff options
author | Volpeon <git@volpeon.ink> | 2022-07-28 11:30:55 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2022-07-28 11:30:55 +0200 |
commit | ab5e589a8559eda788a619bf76d67b40d6b8db55 (patch) | |
tree | 8d32076f36e40234ef16751681d96e69fe0074fd /templates/partials/list_card.html | |
parent | Fix blobfox hashes (diff) | |
download | volpeon.ink-ab5e589a8559eda788a619bf76d67b40d6b8db55.tar.gz volpeon.ink-ab5e589a8559eda788a619bf76d67b40d6b8db55.tar.bz2 volpeon.ink-ab5e589a8559eda788a619bf76d67b40d6b8db55.zip |
Improved draft badge
Diffstat (limited to 'templates/partials/list_card.html')
-rw-r--r-- | templates/partials/list_card.html | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/templates/partials/list_card.html b/templates/partials/list_card.html index 0695eed..a89193a 100644 --- a/templates/partials/list_card.html +++ b/templates/partials/list_card.html | |||
@@ -1,4 +1,3 @@ | |||
1 | $if(it.url)$ | ||
2 | <a | 1 | <a |
3 | href="$it.url.rel$" | 2 | href="$it.url.rel$" |
4 | class="l-card-list__card c-card h-entry" | 3 | class="l-card-list__card c-card h-entry" |
@@ -19,27 +18,36 @@ $if(it.url)$ | |||
19 | <div class="l-media__block l-media__block--main u-d-none@sm-hi"> | 18 | <div class="l-media__block l-media__block--main u-d-none@sm-hi"> |
20 | $if(it.subtitle)$ | 19 | $if(it.subtitle)$ |
21 | <small class="u-d-block">$it.subtitle$</small> | 20 | <small class="u-d-block">$it.subtitle$</small> |
22 | <strong class="u-d-block">$it.title$</strong> | 21 | <div> |
22 | <strong>$it.title$</strong> | ||
23 | $if(it.draft)$<span class="o-badge u-ml-100">Draft</span>$endif$ | ||
24 | </div> | ||
23 | $elseif(it.category)$ | 25 | $elseif(it.category)$ |
24 | <small class="u-d-block">$it.category$</small> | 26 | <small class="u-d-block">$it.category$</small> |
25 | <strong class="u-d-block">$it.title$</strong> | 27 | <div> |
28 | <strong>$it.title$</strong> | ||
29 | $if(it.draft)$<span class="o-badge u-ml-100">Draft</span>$endif$ | ||
30 | </div> | ||
26 | $elseif(it.last_update)$ | 31 | $elseif(it.last_update)$ |
27 | <small> | 32 | <small> |
28 | <time datetime="$it.last_update.yyyy_mm_dd$">$it.last_update.long$</time> | 33 | <time datetime="$it.last_update.yyyy_mm_dd$">$it.last_update.long$</time> |
29 | </small> | 34 | </small> |
30 | <strong class="u-d-block">$it.title$</strong> | 35 | <div> |
36 | <strong>$it.title$</strong> | ||
37 | $if(it.draft)$<span class="o-badge u-ml-100">Draft</span>$endif$ | ||
38 | </div> | ||
31 | $else$ | 39 | $else$ |
32 | <span class="p-name" itemprop="name headline"> | 40 | <span class="p-name" itemprop="name headline"> |
33 | $it.title$ | 41 | $it.title$ |
34 | </span> | 42 | </span> |
43 | $if(it.draft)$<span class="o-badge u-ml-100">Draft</span>$endif$ | ||
35 | $endif$ | 44 | $endif$ |
36 | </div> | 45 | </div> |
37 | <div class="l-media__block l-media__block--main u-d-none@sm-lo"> | 46 | <div class="l-media__block l-media__block--main u-d-none@sm-lo"> |
38 | $it.title$ | 47 | $it.title$ |
48 | $if(it.draft)$<span class="o-badge u-ml-100">Draft</span>$endif$ | ||
39 | </div> | 49 | </div> |
40 | $if(it.draft)$ | 50 | $if(it.subtitle)$ |
41 | <div class="l-media__block u-d-none@sm-lo"><span class="o-badge">Draft</span></div> | ||
42 | $elseif(it.subtitle)$ | ||
43 | <small class="l-media__block u-d-none@sm-lo">$it.subtitle$</small> | 51 | <small class="l-media__block u-d-none@sm-lo">$it.subtitle$</small> |
44 | $elseif(it.category)$ | 52 | $elseif(it.category)$ |
45 | <small class="l-media__block u-d-none@sm-lo">$it.category$</small> | 53 | <small class="l-media__block u-d-none@sm-lo">$it.category$</small> |
@@ -57,4 +65,3 @@ $if(it.url)$ | |||
57 | $endif$ | 65 | $endif$ |
58 | </div> | 66 | </div> |
59 | </a> | 67 | </a> |
60 | $endif$ | ||