From b0f77831bd10be9566a95cee889a3c8061295a6e Mon Sep 17 00:00:00 2001 From: rra Date: Thu, 2 Jun 2022 06:45:54 +0200 Subject: [PATCH] add 'contributors' as metadata category --- lumbunglib/templates/feed.md | 1 + lumbunglib/templates/hashtag.md | 3 ++- lumbunglib/templates/video.md | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lumbunglib/templates/feed.md b/lumbunglib/templates/feed.md index 71d984b..29d8e91 100644 --- a/lumbunglib/templates/feed.md +++ b/lumbunglib/templates/feed.md @@ -7,6 +7,7 @@ authors: {% if frontmatter.author %} ["{{ frontmatter.author }}"] {% endif %} original_link: "{{ frontmatter.original_link }}" feed_name: "{{ frontmatter.feed_name}}" categories: ["{{ frontmatter.card_type }}", "{{ frontmatter.feed_name}}"] +contributors: ["{{ frontmatter.feed_name}}"] tags: {{ frontmatter.tags }} {% if frontmatter.featured_image %}featured_image: "{{frontmatter.featured_image}}"{% endif %} --- diff --git a/lumbunglib/templates/hashtag.md b/lumbunglib/templates/hashtag.md index bdcacba..4a61a7a 100644 --- a/lumbunglib/templates/hashtag.md +++ b/lumbunglib/templates/hashtag.md @@ -2,11 +2,12 @@ date: {{ post_metadata.created_at }} #2021-06-10T10:46:33+02:00 draft: false authors: ["{{ post_metadata.account.display_name }}"] +contributors: ["{{ post_metadata.account.acct}}"] avatar: {{ post_metadata.account.avatar }} categories: ["shouts"] images: [{% for i in post_metadata.media_attachments %} {{ i.url }}, {% endfor %}] title: {{ post_metadata.account.display_name }} -tags: [{% for i in post_metadata.tags %} {{ i.name }} {% endfor %}] +tags: [{% for i in post_metadata.tags %} "{{ i.name }}", {% endfor %}] --- {% for item in post_metadata.media_attachments %} diff --git a/lumbunglib/templates/video.md b/lumbunglib/templates/video.md index 96761ec..076a1bf 100644 --- a/lumbunglib/templates/video.md +++ b/lumbunglib/templates/video.md @@ -6,6 +6,7 @@ uuid: "{{v.uuid}}" video_duration: "{{ v.duration | duration }} " video_channel: "{{ v.channel.display_name }}" channel_url: "{{ v.channel.url }}" +contributors: ["{{ v.account.display_name }}"] preview_image: "{{ preview_image }}" images: ["./{{ preview_image }}"] categories: ["tv","{{ v.channel.display_name }}"]