mirror of
https://github.com/TrentSPalmer/trentpalmerdotorg.git
synced 2024-11-22 01:21:30 -08:00
add twitter_image metadata
This commit is contained in:
parent
819c8db500
commit
1cf5f14e55
@ -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 }}" />
|
||||
|
@ -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,
|
||||
})
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user