From 5a83a4575d4fa0090edfccc3d9716110e33ba886 Mon Sep 17 00:00:00 2001 From: "Mr. Senko" Date: Thu, 31 Mar 2016 23:55:19 +0300 Subject: [PATCH] Make article:author OpenGraph compatible OpenGraph actually needs a profile URL as value to article:author. We point it to the author's page and adjust the OG meta tags on author.html to include the relevant profile information. --- templates/article.html | 2 +- templates/author.html | 9 +++++++++ templates/base.html | 2 -- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/templates/article.html b/templates/article.html index 3474864..385fbe2 100755 --- a/templates/article.html +++ b/templates/article.html @@ -59,7 +59,7 @@ {{ super() }} {% for author in article.authors %} - + {% endfor %} diff --git a/templates/author.html b/templates/author.html index 5399bbc..65aff95 100755 --- a/templates/author.html +++ b/templates/author.html @@ -2,6 +2,15 @@ {% block title %}{{ SITENAME }} - Articles by {{ author }}{% endblock %} +{% block opengraph %} + {{ super() }} + + + + + +{% endblock opengraph %} + {% block header %} {% if HEADER_COVER %} diff --git a/templates/base.html b/templates/base.html index 7c41da0..130a43c 100644 --- a/templates/base.html +++ b/templates/base.html @@ -6,8 +6,6 @@ - - {% if GOOGLE_SITE_VERIFICATION %}