Merge pull request 'feat: add opengraph generation for social and tv' (#23) from knoflook/lumbunglib:master into master

Reviewed-on: ruangrupa/lumbunglib#23
This commit is contained in:
knoflook 2022-02-02 14:15:41 +01:00
commit 1fe2fa3bcf
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 }}
---