]> git.0d.be Git - panikweb.git/commitdiff
add opengraph meta to all pages
authorFrédéric Péters <fpeters@0d.be>
Mon, 20 Mar 2017 19:50:31 +0000 (20:50 +0100)
committerFrédéric Péters <fpeters@0d.be>
Mon, 20 Mar 2017 19:51:10 +0000 (20:51 +0100)
panikweb_templates/templates/base.html
panikweb_templates/templates/emissions/emission_detail.html
panikweb_templates/templates/emissions/episode_detail.html
panikweb_templates/templates/emissions/newsitem_detail.html
panikweb_templates/templates/home.html

index 01f17b4a4ea528dd331e5cdc9d3a547f8ac6cfcd..66e5cbd03ebe648da72f348e9a38d901d6bcce7c 100644 (file)
@@ -1,4 +1,4 @@
-{% load paniktags compress %}<!DOCTYPE html>
+{% load paniktags staticfiles compress %}<!DOCTYPE html>
 <html>
 <head>
     <meta charset="UTF-8" />
     <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>
 
index 7900139837f16d2328ace3a6182a3227abcce462..0898b8d91f573943ee0a1f8bc8c4644005becb41 100644 (file)
@@ -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 }}" />
index bb047d801fddaa147f2fccc6833105a9061e7cf9..bde965b7b1cc7e4b412e5f5703b3f99adb5f163c 100644 (file)
@@ -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 }}" />
index 15c200476706702fbb1a3ca32f1e7d478f5dddce..d035914e81e9630a3a3bc5896ccf43046fcf3741 100644 (file)
@@ -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 %}
 
index edde4de407ceb0e1fa7254d42c1d2effb5647234..6af305db7d4943c89c5eb3b56054759ad5bd9358 100644 (file)
@@ -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",