From 77f391f24d4073bdd9c75ce25f0665ae70681ca8 Mon Sep 17 00:00:00 2001 From: Elias Kohout Date: Fri, 10 Jan 2025 20:02:35 +0100 Subject: [PATCH] improved design for articles --- golang/assets/templates/article.html | 29 ++++++++++++++-------------- golang/assets/templates/layout.html | 12 ++++++------ 2 files changed, 21 insertions(+), 20 deletions(-) diff --git a/golang/assets/templates/article.html b/golang/assets/templates/article.html index d2ad55d..c119940 100644 --- a/golang/assets/templates/article.html +++ b/golang/assets/templates/article.html @@ -1,22 +1,23 @@ {{ define "content" }} -
+
+ {{ range . }} -
-
-

{{ .Title }}

-

- {{ .ShortSource }} - {{ .PublishDate }} - {{if .AiSummarized}} - ai summary - {{end}} -

-

{{ .Summary }}

- Link +
+
{{ .Title }}
+
+

+ {{ .ShortSource }} + {{ .PublishDate }} + {{if .AiSummarized}} + ai summary + {{end}} +

+

{{ .Summary }}

+ Link
{{ end }} -
+
{{ end }} diff --git a/golang/assets/templates/layout.html b/golang/assets/templates/layout.html index 6428e53..931bb30 100644 --- a/golang/assets/templates/layout.html +++ b/golang/assets/templates/layout.html @@ -12,10 +12,10 @@ {{/* Logo with navigation */}} @@ -42,9 +42,9 @@
-