feat: add opengraph generation for social and tv

This commit is contained in:
knoflook 2022-02-02 13:55:38 +01:00
parent 7e45112280
commit eaadfd2023
Signed by: knoflook
GPG Key ID: D6A1D0E8FC4FEF1C
2 changed files with 3 additions and 0 deletions

View File

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

View File

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