From: Michael Tremer Date: Sat, 24 Jun 2023 20:36:02 +0000 (+0000) Subject: blog: Move buttons to the top on posts page X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b8d3f2f526e8c1532974260fee29ff96990d8ea5;p=ipfire.org.git blog: Move buttons to the top on posts page This should hopefully be more inviting for people to click them instead of hiding them at the end of the page where nobody ever gets to anyways. Signed-off-by: Michael Tremer --- diff --git a/src/templates/blog/post.html b/src/templates/blog/post.html index 1bc4f96e..c1597ae3 100644 --- a/src/templates/blog/post.html +++ b/src/templates/blog/post.html @@ -84,33 +84,46 @@
-
-
-
- {% raw post.html %} -
-
+
+ {% if "lightningwirelabs.com" in post.tags and post.link %} + + + + + + {{ _("Go to Lightning Wire Labs") }} + + + {% end %} -
- {% if "lightningwirelabs.com" in post.tags and post.link %} - - Go to Lightning Wire Labs - - {% end %} + {% if post.release or "donate" in post.tags %} + + + + + + {{ _("Donate") }} + + + {% end %} - {% if post.release %} - - {{ _("Download") }} - - {% end %} + {% if post.release %} + + + + + + {{ _("Download %s") % post.release }} + + + {% end %} +
- {% if post.release or "donate" in post.tags %} - - {{ _("Donate") }} - - {% end %} +
+
+ {% raw post.html %}
-
+