From: Radek Czajka Date: Thu, 2 Jan 2014 10:58:39 +0000 (+0100) Subject: Add og:image on image page X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/18f79c7cb21edb9f999e9933b93e6312392e5e91?ds=sidebyside;hp=-c Add og:image on image page --- 18f79c7cb21edb9f999e9933b93e6312392e5e91 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 %}