]> git.0d.be Git - panikweb.git/blobdiff - panikweb/templates/feed/newsitem.html
move static & templates to panikweb project directory
[panikweb.git] / panikweb / templates / feed / newsitem.html
diff --git a/panikweb/templates/feed/newsitem.html b/panikweb/templates/feed/newsitem.html
new file mode 100644 (file)
index 0000000..3b969ae
--- /dev/null
@@ -0,0 +1,10 @@
+{% load paniktags thumbnail %}
+{% if obj.image %}
+{% thumbnail obj.image "320x240" crop="50% 25%" as im %}
+<img src="{{im.url|as_absolute_url}}"/>
+{% endthumbnail %}
+{% endif %}
+
+{% autoescape off %}
+{{ obj.text|set_absolute_urls }}
+{% endautoescape %}