From f68fc86ca31cd6a3fdafcf6c4001cf34f855a174 Mon Sep 17 00:00:00 2001 From: rra Date: Mon, 25 Nov 2024 10:11:17 +0100 Subject: [PATCH] fix pen cards / broken liks --- themes/lumbung-theme/layouts/_default/list.html | 3 +++ themes/lumbung-theme/layouts/partials/pen_card.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/themes/lumbung-theme/layouts/_default/list.html b/themes/lumbung-theme/layouts/_default/list.html index 9178d35..061b239 100644 --- a/themes/lumbung-theme/layouts/_default/list.html +++ b/themes/lumbung-theme/layouts/_default/list.html @@ -22,6 +22,9 @@ {{- partial "partials/shout_card.html" . -}} {{ end }} + {{ else if in .Params.sources "pen.lumbung.space" }} + {{- partial "partials/pen_card.html" . -}} + {{ else if eq .Section "social" }} {{- partial "partials/social_card.html" . -}} diff --git a/themes/lumbung-theme/layouts/partials/pen_card.html b/themes/lumbung-theme/layouts/partials/pen_card.html index 4accc6d..cc4f808 100644 --- a/themes/lumbung-theme/layouts/partials/pen_card.html +++ b/themes/lumbung-theme/layouts/partials/pen_card.html @@ -1,7 +1,7 @@
-
From {{ if .Params.author }}{{.Params.author}} at {{ end }}{{ .Params.feed_name }}
+
From {{ if .Params.author }}{{.Params.author}} at {{ end }}{{ .Params.feed_name }}
{{ $postPermalink := .Permalink}}