Commit e6743947 authored by fred's avatar fred

add opengraph meta to all pages

parent 6d2f46c2
{% load paniktags compress %}<!DOCTYPE html> {% load paniktags staticfiles compress %}<!DOCTYPE html>
<html> <html>
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
...@@ -10,6 +10,11 @@ ...@@ -10,6 +10,11 @@
<link rel="canonical" href="{{ request.build_absolute_uri }}" /> <link rel="canonical" href="{{ request.build_absolute_uri }}" />
<meta name="og:site_name" content="Radio Panik"/> <meta name="og:site_name" content="Radio Panik"/>
{% block head %}
<meta property="og:title" content="Radio Panik - 105.4 FM" />
<meta property="og:image" content="{% static 'img/Radio_Panik_Logo_2016-01.png' %}" />
<meta property="og:description" content="En vous branchant sur le 105.4 FM, vous pénétrerez plus avant dans l'œil du cyclone…" />
{% endblock %}
<link rel="alternate" type="application/rss+xml" href="{% url 'rss-feed' %}" title="News rss feed"> <link rel="alternate" type="application/rss+xml" href="{% url 'rss-feed' %}" title="News rss feed">
<link rel="alternate" type="application/rss+xml" href="{% url 'atom-feed' %}" title="News atom feed"> <link rel="alternate" type="application/rss+xml" href="{% url 'atom-feed' %}" title="News atom feed">
...@@ -33,7 +38,6 @@ ...@@ -33,7 +38,6 @@
<script type="text/javascript" src="{{ STATIC_URL }}js/specifics.js"></script> <script type="text/javascript" src="{{ STATIC_URL }}js/specifics.js"></script>
{% endcompress %} {% endcompress %}
{% block head %}{% endblock %}
{% block extrascripts %}{% endblock %} {% block extrascripts %}{% endblock %}
</head> </head>
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
<meta property="og:title" content="{{ emission.title }}" /> <meta property="og:title" content="{{ emission.title }}" />
{% if emission.image %} {% if emission.image %}
<meta property="og:image" content="{{ emission.image.url }}" /> <meta property="og:image" content="{{ emission.image.url }}" />
{% else %}
<meta property="og:image" content="{% static 'img/Radio_Panik_Logo_2016-01.png' %}" />
{% endif %} {% endif %}
{% if emission.subtitle %} {% if emission.subtitle %}
<meta property="og:description" content="{{ emission.subtitle }}" /> <meta property="og:description" content="{{ emission.subtitle }}" />
......
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
<meta property="og:image" content="{{ episode.image.url }}" /> <meta property="og:image" content="{{ episode.image.url }}" />
{% elif episode.emission.image %} {% elif episode.emission.image %}
<meta property="og:image" content="{{ episode.emission.image.url }}" /> <meta property="og:image" content="{{ episode.emission.image.url }}" />
{% else %}
<meta property="og:image" content="{% static 'img/Radio_Panik_Logo_2016-01.png' %}" />
{% endif %} {% endif %}
{% if episode.subtitle %} {% if episode.subtitle %}
<meta property="og:description" content="{{ episode.subtitle }}" /> <meta property="og:description" content="{{ episode.subtitle }}" />
......
...@@ -8,8 +8,11 @@ ...@@ -8,8 +8,11 @@
{% block head %} {% block head %}
<meta property="og:title" content="{{ newsitem.title }}" /> <meta property="og:title" content="{{ newsitem.title }}" />
<meta property="og:description" content="En vous branchant sur le 105.4 FM, vous pénétrerez plus avant dans l'œil du cyclone…" />
{% if newsitem.image %} {% if newsitem.image %}
<meta property="og:image" content="{{ newsitem.image.url }}" /> <meta property="og:image" content="{{ newsitem.image.url }}" />
{% else %}
<meta property="og:image" content="{% static 'img/Radio_Panik_Logo_2016-01.png' %}" />
{% endif %} {% endif %}
{% endblock %} {% endblock %}
......
...@@ -4,8 +4,7 @@ ...@@ -4,8 +4,7 @@
{% block title %}{% trans 'Home' %}{% endblock %} {% block title %}{% trans 'Home' %}{% endblock %}
{% block head %} {% block head %}
<meta property="og:title" content="Radio Panik - 105.4 FM" /> {{ block.super }}
<meta property="og:description" content="En vous branchant sur le 105.4 FM, vous pénétrerez plus avant dans l'œil du cyclone…" />
<script type="application/ld+json"> <script type="application/ld+json">
{ {
"@context": "http://schema.org", "@context": "http://schema.org",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment