diff options
author | Volpeon <git@volpeon.ink> | 2022-07-30 08:08:15 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2022-07-30 08:08:15 +0200 |
commit | 69f764fd41cb833164ddb07c31fd835d70215f1f (patch) | |
tree | 4414e657fcd830d16fa2705e937f34d30039854f | |
parent | Update (diff) | |
download | volpeon.ink-69f764fd41cb833164ddb07c31fd835d70215f1f.tar.gz volpeon.ink-69f764fd41cb833164ddb07c31fd835d70215f1f.tar.bz2 volpeon.ink-69f764fd41cb833164ddb07c31fd835d70215f1f.zip |
Semantic fixes, show last update before title
-rw-r--r-- | content/notebook/fediverse/i-want-to-be-a-fox.md | 4 | ||||
-rw-r--r-- | scripts/metadata.lua | 2 | ||||
-rw-r--r-- | templates/layouts/page.html | 8 | ||||
-rw-r--r-- | templates/partials/gallery_card.html | 13 | ||||
-rw-r--r-- | templates/partials/grid_card.html | 8 | ||||
-rw-r--r-- | templates/partials/list_card.html | 6 |
6 files changed, 24 insertions, 17 deletions
diff --git a/content/notebook/fediverse/i-want-to-be-a-fox.md b/content/notebook/fediverse/i-want-to-be-a-fox.md index a24035d..a81d67d 100644 --- a/content/notebook/fediverse/i-want-to-be-a-fox.md +++ b/content/notebook/fediverse/i-want-to-be-a-fox.md | |||
@@ -28,6 +28,10 @@ As for the recent dragon stuff, I thought about what this character means to me. | |||
28 | 28 | ||
29 | ##### Update 2022-07-30 | 29 | ##### Update 2022-07-30 |
30 | 30 | ||
31 | ::: alert | ||
32 | I recent post that I feel is relevant here. | ||
33 | ::: | ||
34 | |||
31 | I mentioned before that I sometimes have sleepwalking...ish episodes where I partially wake up at night and I'm usually aware of who and where I am, but my mind is still in dream mode which leads to interesting thought processes. | 35 | I mentioned before that I sometimes have sleepwalking...ish episodes where I partially wake up at night and I'm usually aware of who and where I am, but my mind is still in dream mode which leads to interesting thought processes. |
32 | 36 | ||
33 | For instance, about half a year ago I had 3 or 4 where I thought wasps (closest approximation) were attacking me. I'm sure I posted about them on fedi. It fucking sucked. | 37 | For instance, about half a year ago I had 3 or 4 where I thought wasps (closest approximation) were attacking me. I'm sure I posted about them on fedi. It fucking sucked. |
diff --git a/scripts/metadata.lua b/scripts/metadata.lua index 27854b9..142cb8b 100644 --- a/scripts/metadata.lua +++ b/scripts/metadata.lua | |||
@@ -340,6 +340,8 @@ function process(global, meta) | |||
340 | meta.date = meta.last_update | 340 | meta.date = meta.last_update |
341 | end | 341 | end |
342 | 342 | ||
343 | meta.was_updated = meta.date and meta.last_update and meta.date.yyyy_mm_dd ~= meta.last_update.yyyy_mm_dd | ||
344 | |||
343 | meta.list = generate_list(meta) | 345 | meta.list = generate_list(meta) |
344 | 346 | ||
345 | return meta | 347 | return meta |
diff --git a/templates/layouts/page.html b/templates/layouts/page.html index b93f45f..3ba8d54 100644 --- a/templates/layouts/page.html +++ b/templates/layouts/page.html | |||
@@ -7,11 +7,17 @@ | |||
7 | > | 7 | > |
8 | <article class="h-entry"> | 8 | <article class="h-entry"> |
9 | $if(date)$ | 9 | $if(date)$ |
10 | <time datetime="$date.yyyy_mm_dd$" class="o-badge u-mb-125 dt-updated" itemprop="dateCreated"> | 10 | <time datetime="$date.yyyy_mm_dd$" class="o-badge u-mb-125 dt-published" itemprop="datePublished"> |
11 | $date.long$ | 11 | $date.long$ |
12 | </time> | 12 | </time> |
13 | $endif$ | 13 | $endif$ |
14 | 14 | ||
15 | $if(was_updated)$ | ||
16 | <time datetime="$last_update.yyyy_mm_dd$" class="o-badge u-mb-125 dt-updated" itemprop="dateModified"> | ||
17 | Updated: $last_update.long$ | ||
18 | </time> | ||
19 | $endif$ | ||
20 | |||
15 | $if(draft)$ | 21 | $if(draft)$ |
16 | <span class="o-badge u-mb-125"> | 22 | <span class="o-badge u-mb-125"> |
17 | Draft | 23 | Draft |
diff --git a/templates/partials/gallery_card.html b/templates/partials/gallery_card.html index f040952..ca1fdd6 100644 --- a/templates/partials/gallery_card.html +++ b/templates/partials/gallery_card.html | |||
@@ -28,32 +28,27 @@ $if(it.thumbnail)$ | |||
28 | <use href="$assets.icons_svg$#$it.icon$"></use> | 28 | <use href="$assets.icons_svg$#$it.icon$"></use> |
29 | </svg> | 29 | </svg> |
30 | $endif$ | 30 | $endif$ |
31 | $if(it.draft)$ | ||
32 | <div class="l-media__block"> | ||
33 | <span class="o-badge">Draft</span> | ||
34 | </div> | ||
35 | $endif$ | ||
36 | <div class="l-media__block l-media__block--main"> | 31 | <div class="l-media__block l-media__block--main"> |
37 | $if(it.subtitle)$ | 32 | $if(it.subtitle)$ |
38 | <div> | 33 | <div> |
39 | <strong>$it.title$</strong> | 34 | <strong class="p-name" itemprop="name headline">$it.title$</strong> |
40 | $if(it.draft)$<span class="o-badge u-ml-100">Draft</span>$endif$ | 35 | $if(it.draft)$<span class="o-badge u-ml-100">Draft</span>$endif$ |
41 | </div> | 36 | </div> |
42 | <small class="u-d-block">$it.subtitle$</small> | 37 | <small class="u-d-block">$it.subtitle$</small> |
43 | $elseif(it.category)$ | 38 | $elseif(it.category)$ |
44 | <small class="u-d-block">$it.category$</small> | 39 | <small class="u-d-block">$it.category$</small> |
45 | <div> | 40 | <div> |
46 | <strong>$it.title$</strong> | 41 | <strong class="p-name" itemprop="name headline">$it.title$</strong> |
47 | $if(it.draft)$<span class="o-badge u-ml-100">Draft</span>$endif$ | 42 | $if(it.draft)$<span class="o-badge u-ml-100">Draft</span>$endif$ |
48 | </div> | 43 | </div> |
49 | $elseif(it.show_date)$ | 44 | $elseif(it.show_date)$ |
50 | <small class="u-d-block"> | 45 | <small class="u-d-block"> |
51 | <time datetime="$it.last_update.yyyy_mm_dd$" itemprop="dateCreated"> | 46 | <time datetime="$it.last_update.yyyy_mm_dd$" class="dt-updated" itemprop="dateModified"> |
52 | $it.last_update.long$ | 47 | $it.last_update.long$ |
53 | </time> | 48 | </time> |
54 | </small> | 49 | </small> |
55 | <div> | 50 | <div> |
56 | <strong>$it.title$</strong> | 51 | <strong class="p-name" itemprop="name headline">$it.title$</strong> |
57 | $if(it.draft)$<span class="o-badge u-ml-100">Draft</span>$endif$ | 52 | $if(it.draft)$<span class="o-badge u-ml-100">Draft</span>$endif$ |
58 | </div> | 53 | </div> |
59 | $else$ | 54 | $else$ |
diff --git a/templates/partials/grid_card.html b/templates/partials/grid_card.html index ab6dbbc..fdd19f2 100644 --- a/templates/partials/grid_card.html +++ b/templates/partials/grid_card.html | |||
@@ -18,24 +18,24 @@ | |||
18 | <div class="l-media__block l-media__block--main"> | 18 | <div class="l-media__block l-media__block--main"> |
19 | $if(it.subtitle)$ | 19 | $if(it.subtitle)$ |
20 | <div> | 20 | <div> |
21 | <strong>$it.title$</strong> | 21 | <strong class="p-name" itemprop="name headline">$it.title$</strong> |
22 | $if(it.draft)$<span class="o-badge u-ml-100">Draft</span>$endif$ | 22 | $if(it.draft)$<span class="o-badge u-ml-100">Draft</span>$endif$ |
23 | </div> | 23 | </div> |
24 | <small class="u-d-block">$it.subtitle$</small> | 24 | <small class="u-d-block">$it.subtitle$</small> |
25 | $elseif(it.category)$ | 25 | $elseif(it.category)$ |
26 | <small class="u-d-block">$it.category$</small> | 26 | <small class="u-d-block">$it.category$</small> |
27 | <div> | 27 | <div> |
28 | <strong>$it.title$</strong> | 28 | <strong class="p-name" itemprop="name headline">$it.title$</strong> |
29 | $if(it.draft)$<span class="o-badge u-ml-100">Draft</span>$endif$ | 29 | $if(it.draft)$<span class="o-badge u-ml-100">Draft</span>$endif$ |
30 | </div> | 30 | </div> |
31 | $elseif(it.show_date)$ | 31 | $elseif(it.show_date)$ |
32 | <small class="u-d-block"> | 32 | <small class="u-d-block"> |
33 | <time datetime="$it.last_update.yyyy_mm_dd$" itemprop="dateCreated"> | 33 | <time datetime="$it.last_update.yyyy_mm_dd$" class="dt-updated" itemprop="dateModified"> |
34 | $it.last_update.long$ | 34 | $it.last_update.long$ |
35 | </time> | 35 | </time> |
36 | </small> | 36 | </small> |
37 | <div> | 37 | <div> |
38 | <strong>$it.title$</strong> | 38 | <strong class="p-name" itemprop="name headline">$it.title$</strong> |
39 | $if(it.draft)$<span class="o-badge u-ml-100">Draft</span>$endif$ | 39 | $if(it.draft)$<span class="o-badge u-ml-100">Draft</span>$endif$ |
40 | </div> | 40 | </div> |
41 | $else$ | 41 | $else$ |
diff --git a/templates/partials/list_card.html b/templates/partials/list_card.html index a89193a..4eed174 100644 --- a/templates/partials/list_card.html +++ b/templates/partials/list_card.html | |||
@@ -37,14 +37,14 @@ | |||
37 | $if(it.draft)$<span class="o-badge u-ml-100">Draft</span>$endif$ | 37 | $if(it.draft)$<span class="o-badge u-ml-100">Draft</span>$endif$ |
38 | </div> | 38 | </div> |
39 | $else$ | 39 | $else$ |
40 | <span class="p-name" itemprop="name headline"> | 40 | <span> |
41 | $it.title$ | 41 | $it.title$ |
42 | </span> | 42 | </span> |
43 | $if(it.draft)$<span class="o-badge u-ml-100">Draft</span>$endif$ | 43 | $if(it.draft)$<span class="o-badge u-ml-100">Draft</span>$endif$ |
44 | $endif$ | 44 | $endif$ |
45 | </div> | 45 | </div> |
46 | <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"> |
47 | $it.title$ | 47 | <span class="p-name" itemprop="name headline">$it.title$</span> |
48 | $if(it.draft)$<span class="o-badge u-ml-100">Draft</span>$endif$ | 48 | $if(it.draft)$<span class="o-badge u-ml-100">Draft</span>$endif$ |
49 | </div> | 49 | </div> |
50 | $if(it.subtitle)$ | 50 | $if(it.subtitle)$ |
@@ -53,7 +53,7 @@ | |||
53 | <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> |
54 | $elseif(it.show_date)$ | 54 | $elseif(it.show_date)$ |
55 | <small class="l-media__block u-d-none@sm-lo"> | 55 | <small class="l-media__block u-d-none@sm-lo"> |
56 | <time datetime="$it.last_update.yyyy_mm_dd$" itemprop="dateCreated"> | 56 | <time datetime="$it.last_update.yyyy_mm_dd$" class="dt-updated" itemprop="dateModified"> |
57 | $it.last_update.short$ | 57 | $it.last_update.short$ |
58 | </time> | 58 | </time> |
59 | </small> | 59 | </small> |