Add og:image on image page
[wolnelektury.git] / apps / picture / templates / picture / picture_detail.html
index ef4042c..a3cbf7d 100644 (file)
@@ -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 %}