Use an event's category image for OpenGraph image when available
This commit is contained in:
parent
0a1832d026
commit
2840c3445d
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}}" />
|
||||
{% 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 %}
|
||||
{% endblock %}
|
||||
|
||||
{% block styles %}
|
||||
|
|
Loading…
Reference in a new issue