From: Rico Hoppe Date: Fri, 23 Jun 2023 00:09:18 +0000 (+0000) Subject: post.html: styled posts X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=50703fb8417537e81455e31f77ba07979fd70881;p=ipfire.org.git post.html: styled posts --- diff --git a/src/templates/blog/post.html b/src/templates/blog/post.html index 1cafa2d0..bcb0ee57 100644 --- a/src/templates/blog/post.html +++ b/src/templates/blog/post.html @@ -35,7 +35,7 @@ {% end block %} {% block container %} -
+ -
-
-
-
-
- {% raw post.html %} -
- -
- {% if "lightningwirelabs.com" in post.tags and post.link %} - - Go to Lightning Wire Labs - - {% end %} +
+
+
+ +

+ {{ post.title }} +

+

- {% if post.release %} - - {{ _("Download") }} - - {% end %} + {{ _("by") }} + + {% if isinstance(post.author, accounts.Account) %} + {{ post.author.name }}, + {% else %} + {{ post.author }}, + {% end %} - {% if post.release or "donate" in post.tags %} - - {{ _("Donate") }} - + {% if post.is_published() %} + {% if post.updated_at and post.updated_at > post.published_at %} + {{ locale.format_date(post.published_at, shorter=True, relative=False) }}, + {{ _("Updated %s") % locale.format_date(post.updated_at, shorter=True) }} + {% else %} + {{ locale.format_date(post.published_at, shorter=True, relative=False) }} {% end %} -

-
+ {% elif post.published_at %} + {{ _("Scheduled to be published %s") % locale.format_date(post.published_at, relative=False) }} + {% else %} + {{ _("Not published") }} + {% end %} + +

-
+
+ + + + + + +
+
+
+
+ +
+ {% raw post.html %} +
+ +
+ {% if "lightningwirelabs.com" in post.tags and post.link %} + +

+ Go to Lightning Wire Labs +

+
+ {% end %} + + {% if post.release %} + +

+ {{ _("Download") }} +

+
+ {% end %} + + {% if post.release or "donate" in post.tags %} + +

+ {{ _("Donate") }} +

+
+ {% end %} +
+
+
+
{% end block %}