From b8d3f2f526e8c1532974260fee29ff96990d8ea5 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 24 Jun 2023 20:36:02 +0000 Subject: [PATCH] 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 --- src/templates/blog/post.html | 59 ++++++++++++++++++++++-------------- 1 file changed, 36 insertions(+), 23 deletions(-) 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 %}
-
+
-- 2.47.3