From 7d63e2b3b410ecf8e064603b0c8550287d7b6f0f Mon Sep 17 00:00:00 2001 From: Dave Page Date: Mon, 23 Jan 2023 15:07:36 +0000 Subject: [PATCH] Blind attempt to restore the old image sanitisation. --- template/index.tmpl | 4 ++-- www/css/planet.css | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/template/index.tmpl b/template/index.tmpl index a5538cb..16ffaf1 100644 --- a/template/index.tmpl +++ b/template/index.tmpl @@ -13,7 +13,7 @@
{{post.title}}
Posted by {%if post.feed.blogurl%}{{post.feed.name}}{%else%}{{post.feed.name}}{%endif%} {%if post.feed.team%} in {{post.feed.team.name}}{%endif%} on {{post.dat|date:"Y-m-d"}} at {{post.dat|date:"H:i"}}
-
+
{{post.txt|postcontents}}
@@ -74,4 +74,4 @@
-{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/www/css/planet.css b/www/css/planet.css index 46896c0..1776c9d 100644 --- a/www/css/planet.css +++ b/www/css/planet.css @@ -63,6 +63,17 @@ div.contentwrap h2:after { margin: .5em 0 .5em .75em; } +.planetpost img { + display: block; + margin-left: auto; + margin-right: auto; + max-height: 100px; + max-width: 300px; + width: auto; + height: auto; + clear: left; +} + h2 a, h3 a { text-decoration: none; color: #515151; -- 2.39.5