From ec02bf973a634f073e8f6f83e2f767ede74c00e4 Mon Sep 17 00:00:00 2001 From: RRA Date: Fri, 3 Mar 2017 10:21:14 +0100 Subject: [PATCH] changes to the way OG tags are generated. Looks for article.description rather than article.summary. Also no more double tags --- pelican/themes/homebrewserver.club/templates/article.html | 2 -- .../themes/homebrewserver.club/templates/syndication.html | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/pelican/themes/homebrewserver.club/templates/article.html b/pelican/themes/homebrewserver.club/templates/article.html index 7cbc272..28a7f70 100644 --- a/pelican/themes/homebrewserver.club/templates/article.html +++ b/pelican/themes/homebrewserver.club/templates/article.html @@ -9,8 +9,6 @@ {% endif %} -{% from 'syndication.html' import syndication with context %} -{{ syndication(article) }} {% endblock %}
diff --git a/pelican/themes/homebrewserver.club/templates/syndication.html b/pelican/themes/homebrewserver.club/templates/syndication.html index c29773c..4951483 100644 --- a/pelican/themes/homebrewserver.club/templates/syndication.html +++ b/pelican/themes/homebrewserver.club/templates/syndication.html @@ -5,7 +5,7 @@ {# Thumbnail image to show when homepage is shared on social media. It also serves as the default image for posts whose featured_image is not set. #} {% if not FEATURED_IMAGE %} -{% set FEATURED_IMAGE = 'http://homebrewserver.club/images/conv_2.png' %} +{% set FEATURED_IMAGE = 'http://homebrewserver.club/extra/featured_image_black.gif' %} {% else %} {% set FEATURED_IMAGE = FEATURED_IMAGE %} {% endif %} @@ -15,7 +15,7 @@ serves as the default image for posts whose featured_image is not set. #} {% if article %} - + {% if article.date %} @@ -26,7 +26,7 @@ serves as the default image for posts whose featured_image is not set. #} {% endif %} - + {% if article.featured_image %}