Skip to content

Commit

Permalink
Add opengraph metadata to show detail page
Browse files Browse the repository at this point in the history
  • Loading branch information
Apreche committed Sep 24, 2023
1 parent e9645f5 commit 6c6c0dc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions shows/templates/shows/show_detail.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{% extends "base.html" %}
{% block title %}{{ show.title }}{% endblock title %}
{% block opengraphextra %}
<meta property="og:title" content="{{ show.title }}" />
{% if show.description %}
<meta property="og:description" content="{{ show.description }}" />
{% endif %}
{% if show.logo %}
<meta property="og:image" content="{{ show.logo.url }}" />
{% endif %}
{% endblock opengraphextra %}
{% block extrahead %}
{% comment "TODO" %}
<link rel="canonical" href="{% url "show-detail" show.slug %}" />
Expand Down

0 comments on commit 6c6c0dc

Please sign in to comment.