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>
<head>
<meta charset="UTF-8" />
......@@ -10,6 +10,11 @@
<link rel="canonical" href="{{ request.build_absolute_uri }}" />
<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 'atom-feed' %}" title="News atom feed">
......@@ -33,7 +38,6 @@
<script type="text/javascript" src="{{ STATIC_URL }}js/specifics.js"></script>
{% endcompress %}
{% block head %}{% endblock %}
{% block extrascripts %}{% endblock %}
</head>
......
......@@ -7,6 +7,8 @@
<meta property="og:title" content="{{ emission.title }}" />
{% if emission.image %}
<meta property="og:image" content="{{ emission.image.url }}" />
{% else %}
<meta property="og:image" content="{% static 'img/Radio_Panik_Logo_2016-01.png' %}" />
{% endif %}
{% if emission.subtitle %}
<meta property="og:description" content="{{ emission.subtitle }}" />
......
......@@ -8,6 +8,8 @@
<meta property="og:image" content="{{ episode.image.url }}" />
{% elif episode.emission.image %}
<meta property="og:image" content="{{ episode.emission.image.url }}" />
{% else %}
<meta property="og:image" content="{% static 'img/Radio_Panik_Logo_2016-01.png' %}" />
{% endif %}
{% if episode.subtitle %}
<meta property="og:description" content="{{ episode.subtitle }}" />
......
......@@ -8,8 +8,11 @@
{% block head %}
<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 %}
<meta property="og:image" content="{{ newsitem.image.url }}" />
{% else %}
<meta property="og:image" content="{% static 'img/Radio_Panik_Logo_2016-01.png' %}" />
{% endif %}
{% endblock %}
......
......@@ -4,8 +4,7 @@
{% block title %}{% trans 'Home' %}{% endblock %}
{% block head %}
<meta property="og:title" content="Radio Panik - 105.4 FM" />
<meta property="og:description" content="En vous branchant sur le 105.4 FM, vous pénétrerez plus avant dans l'œil du cyclone…" />
{{ block.super }}
<script type="application/ld+json">
{
"@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