From 03c2acb3d2a7d41a6a44eb0b2ee266bf31dccda7 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Thu, 16 Jun 2022 13:48:07 +0200 Subject: More metadata --- content/profiles/bandcamp.md | 1 + content/profiles/email.md | 1 + content/profiles/fediverse.md | 1 + scripts/metadata_filter.lua | 2 + templates/partials/gallery_card.html | 105 +++++++++++++++++++---------------- templates/partials/grid_card.html | 85 +++++++++++++++------------- templates/partials/list_card.html | 93 +++++++++++++++++-------------- 7 files changed, 157 insertions(+), 131 deletions(-) diff --git a/content/profiles/bandcamp.md b/content/profiles/bandcamp.md index d3a5e2b..d55a3b8 100644 --- a/content/profiles/bandcamp.md +++ b/content/profiles/bandcamp.md @@ -3,4 +3,5 @@ title: Bandcamp subtitle: volpeon icon: parallelogram url: https://bandcamp.com/volpeon +rel: me --- diff --git a/content/profiles/email.md b/content/profiles/email.md index 657d620..99c3de1 100644 --- a/content/profiles/email.md +++ b/content/profiles/email.md @@ -3,4 +3,5 @@ title: E-Mail subtitle: me@volpeon.ink icon: envelope url: mailto:me@volpeon.ink +rel: me --- diff --git a/content/profiles/fediverse.md b/content/profiles/fediverse.md index d43b1fa..3bde3d4 100644 --- a/content/profiles/fediverse.md +++ b/content/profiles/fediverse.md @@ -3,4 +3,5 @@ title: Fediverse subtitle: "@volpeon@mk.vulpes.one" icon: graph url: https://mk.vulpes.one/@volpeon +rel: me --- diff --git a/scripts/metadata_filter.lua b/scripts/metadata_filter.lua index 3fc6c66..2a6d076 100644 --- a/scripts/metadata_filter.lua +++ b/scripts/metadata_filter.lua @@ -192,6 +192,7 @@ function d1_page_to_list_item(meta, p) schema_type = p.schema_type, position = p.position, url = p.url, + rel = p.rel, slug = p.slug, thumbnail = p.thumbnail, icon = p.icon or meta.icon, @@ -210,6 +211,7 @@ function d2_page_to_list_item(meta, cat, p, set_cat_title) schema_type = p.schema_type, position = p.position, url = p.url, + rel = p.rel, slug = p.slug, thumbnail = p.thumbnail, icon = p.icon or cat.icon, diff --git a/templates/partials/gallery_card.html b/templates/partials/gallery_card.html index edc54b4..ea82412 100644 --- a/templates/partials/gallery_card.html +++ b/templates/partials/gallery_card.html @@ -1,57 +1,64 @@ $if(it.url)$ $if(it.thumbnail)$ - - - + + + -
-
- Preview thumbnail of "$it.title$" -
+
+
+ Preview thumbnail of "$it.title$"
-
- $if(it.indicator)$ -
- $endif$ - $if(it.icon)$ - - $endif$ -
- $if(it.subtitle)$ - $it.title$ - $it.subtitle$ - $elseif(it.category)$ - $it.category$ - $it.title$ - $elseif(it.date)$ - - $it.title$ - $else$ - - $it.title$ - - $endif$ -
- $if(it.post_icon)$ - +
+
+ $endif$ $endif$ diff --git a/templates/partials/grid_card.html b/templates/partials/grid_card.html index afbea1f..a1afead 100644 --- a/templates/partials/grid_card.html +++ b/templates/partials/grid_card.html @@ -1,44 +1,51 @@ $if(it.url)$ - - + + -
- $if(it.indicator)$ -
- $endif$ - $if(it.icon)$ - - $endif$ -
- $if(it.subtitle)$ - $it.title$ - $it.subtitle$ - $elseif(it.category)$ - $it.category$ - $it.title$ - $elseif(it.date)$ - - $it.title$ - $else$ - - $it.title$ - - $endif$ -
- $if(it.post_icon)$ - +
+ $endif$ diff --git a/templates/partials/list_card.html b/templates/partials/list_card.html index 3f2b956..e7d1e05 100644 --- a/templates/partials/list_card.html +++ b/templates/partials/list_card.html @@ -1,46 +1,53 @@ $if(it.url)$ - - + + -
- $if(it.indicator)$ -
- $endif$ - $if(it.icon)$ - - $endif$ -
- $it.title$ -
- $if(it.subtitle)$ -
- - $it.subtitle$ - -
- $elseif(it.category)$ -
- - $it.category$ - -
- $elseif(it.date)$ - - $endif$ - $if(it.post_icon)$ - - $endif$ -
-
+
+ $if(it.indicator)$ +
+ $endif$ + $if(it.icon)$ + + $endif$ +
+ $it.title$ +
+ $if(it.subtitle)$ +
+ + $it.subtitle$ + +
+ $elseif(it.category)$ +
+ + $it.category$ + +
+ $elseif(it.date)$ + + $endif$ + $if(it.post_icon)$ + + $endif$ +
+ $endif$ -- cgit v1.2.3-54-g00ecf