Use an event's category image for OpenGraph image when available
This commit is contained in:
parent
2840c3445d
commit
4ba3376d19
1 changed files with 4 additions and 0 deletions
|
@ -8,7 +8,11 @@
|
|||
<meta property="og:type" content="website" />
|
||||
<meta property="og:title" content="{{event.name}}" />
|
||||
<meta property="og:description" content="{{event.summary|jsencode}}" />
|
||||
{% if event.team.category %}
|
||||
<meta property="og:image" content="{{event.team.category.img_url}}" />
|
||||
{% else %}
|
||||
<meta property="og:image" content="https://gettogether.community{% static 'img/team_placeholder.png' %}" />
|
||||
{% endif %}
|
||||
<link rel="canonical" href="{{event.get_full_url}}">
|
||||
{% endblock %}
|
||||
|
||||
|
|
Loading…
Reference in a new issue