From 18f79c7cb21edb9f999e9933b93e6312392e5e91 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Thu, 2 Jan 2014 11:58:39 +0100 Subject: [PATCH] Add og:image on image page --- apps/picture/templates/picture/picture_detail.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/picture/templates/picture/picture_detail.html b/apps/picture/templates/picture/picture_detail.html index ef4042c96..a3cbf7d94 100644 --- a/apps/picture/templates/picture/picture_detail.html +++ b/apps/picture/templates/picture/picture_detail.html @@ -2,6 +2,10 @@ {% load i18n %} {% load picture_tags catalogue_tags pagination_tags %} {% load thumbnail %} +{% load build_absolute_uri from common_tags %} + + +{% block ogimage %}{% thumbnail picture.image_file "535" upscale="false" as thumb %}{{ thumb.url|build_absolute_uri:request }}{% endthumbnail %}{% endblock %} {% block titleextra %}{{ picture.title }}{% endblock %} -- 2.20.1