From 27797c2d7d35f46f790ac0360af74cf4543ee2a7 Mon Sep 17 00:00:00 2001 From: Jakob Meier Date: Fri, 9 Feb 2024 16:19:21 +0100 Subject: [PATCH] Show tags below blog preview and use blog preview element on keyword screen --- layouts/blog/list.html | 13 +++---------- layouts/partials/blog-preview.html | 23 ++++++++++++++++++++++ layouts/tags/list.html | 12 +++++++++--- static/base.css | 31 +++++++++++++++++++++++++----- 4 files changed, 61 insertions(+), 18 deletions(-) create mode 100644 layouts/partials/blog-preview.html diff --git a/layouts/blog/list.html b/layouts/blog/list.html index ab608d6..8caf169 100644 --- a/layouts/blog/list.html +++ b/layouts/blog/list.html @@ -26,18 +26,11 @@ {{ else }}

Posts

RSS feed

+ {{ end }} {{ partial "footer.html" }} diff --git a/layouts/partials/blog-preview.html b/layouts/partials/blog-preview.html new file mode 100644 index 0000000..0bd171e --- /dev/null +++ b/layouts/partials/blog-preview.html @@ -0,0 +1,23 @@ +
  • + +

    + {{.Title}} +

    + + {{.Date.Format "January 2, 2006"}} + ({{.ReadingTime}} min) + +

    {{ .Description }}

    +
    + {{ if (.GetTerms "keywords") }} + + {{ end }} +
  • diff --git a/layouts/tags/list.html b/layouts/tags/list.html index d1842da..bc6dff0 100644 --- a/layouts/tags/list.html +++ b/layouts/tags/list.html @@ -9,11 +9,17 @@ {{ partial "nav.html" }}

    {{ .Title }}

    -