add twitter_image metadata

This commit is contained in:
Trent Palmer 2021-03-25 14:57:41 -07:00
parent 819c8db500
commit 1cf5f14e55
2 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,7 @@
{% if is_episode %}
<meta property="twitter:card" content="summary" />
<meta property="twitter:creator" content="@BoringTrent" />
<meta property="twitter:image" content="{{ IMAGES_URL }}{{ twitter_image }}" />
<meta property="og:title" content="{{ ogtitle }}" />
<meta property="og:url" content="{{ ogurl }}" />
<meta property="og:audio" content="{{ MP3_URL }}{{ ogmp3 }}" />

View File

@ -35,7 +35,8 @@ def episode(request, pk, slug):
{
'episodes': (episode, ), 'IMAGES_URL': IMAGES_URL, 'is_episode': True,
'MP3_URL': MP3_URL, 'title': episode.title, 'heading': episode.title,
'ogtitle': episode.title, 'ogurl': og_url, 'ogmp3': episode.mp3, 'feed': episode.feed
'ogtitle': episode.title, 'ogurl': og_url, 'ogmp3': episode.mp3,
'feed': episode.feed, 'twitter_image': episode.image,
})