feat: add opengraph generation for social and tv #23

Merged
knoflook merged 2 commits from knoflook/lumbunglib:master into master 2022-02-02 13:15:41 +00:00
2 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,8 @@ draft: false
author: "{{ post_metadata.account.display_name }}" author: "{{ post_metadata.account.display_name }}"
avatar: "{{ post_metadata.account.avatar }}" avatar: "{{ post_metadata.account.avatar }}"
categories: ["shouts"] 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 %}]
--- ---

View File

@ -7,6 +7,7 @@ video_duration: "{{ v.duration | duration }} "
video_channel: "{{ v.channel.display_name }}" video_channel: "{{ v.channel.display_name }}"
channel_url: "{{ v.channel.url }}" channel_url: "{{ v.channel.url }}"
preview_image: "{{ preview_image }}" preview_image: "{{ preview_image }}"
images: ["./{{ preview_image }}"]
categories: ["tv","{{ v.channel.display_name }}"] categories: ["tv","{{ v.channel.display_name }}"]
is_live: {{ v.is_live }} is_live: {{ v.is_live }}
--- ---