summaryrefslogtreecommitdiffstatshomepage
path: root/templates
diff options
context:
space:
mode:
authorWolfgang Müller2021-10-18 10:08:53 +0200
committerWolfgang Müller2021-10-18 10:08:53 +0200
commit61696d41ed28ed62f4b93f6ff86b45a2325d67ed (patch)
tree36da5e047454cd03ca76db64b6dbb8561c50e7ba /templates
parent239e37b7d8c3a9fdf4d465f91bd7df727c53cdb5 (diff)
downloadzunzuncito-61696d41ed28ed62f4b93f6ff86b45a2325d67ed.tar.gz
templates: Also set avatar size in HTML
Legacy devices might not render the CSS correctly, making the high-resolution avatar images take up most of the space on the site. Make sure to resize them to 64px in HTML using a width attribute.
Diffstat (limited to 'templates')
-rw-r--r--templates/macros.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/macros.html b/templates/macros.html
index ffa8641..1fbfc55 100644
--- a/templates/macros.html
+++ b/templates/macros.html
@@ -1,7 +1,7 @@
{% macro render_post(post, class="feed") -%}
<article class="{{ class }}">
<header>
- <img class="avatar" alt="{{ config.extra.author }}" src="{{ config.extra.avatar }}" />
+ <img class="avatar" alt="{{ config.extra.author }}" src="{{ config.extra.avatar }}" width="64px" />
<div class="banner smaller">
<div class="info">
<a class="bold-hover" title="permalink to this post" href="{{ post.permalink }}">{% if class == "mention" %}№ {{ post.slug }} {% else %}§{% endif %}</a>