From 5905bee42e7ad351162cfa35ce51a4eeb996ee15 Mon Sep 17 00:00:00 2001 From: Gianmarco Gargiulo Date: Fri, 22 Sep 2023 23:39:06 +0200 Subject: [PATCH] Improved post cards for tags and added a download link for the front matter (yet to be implemented in the articles) --- themes/hugo-casper3/assets/scss/main.scss | 2 +- themes/hugo-casper3/layouts/_default/single.html | 2 +- themes/hugo-casper3/layouts/partials/post-card.html | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/themes/hugo-casper3/assets/scss/main.scss b/themes/hugo-casper3/assets/scss/main.scss index bc7bb86..79ac0da 100644 --- a/themes/hugo-casper3/assets/scss/main.scss +++ b/themes/hugo-casper3/assets/scss/main.scss @@ -792,7 +792,7 @@ h5,h6{ font-family:"Mustica Pro","Roboto",sans-serif } .no-image .post-card-title{ - margin-top:0 + margin-top:6px } .post-card-content{ flex-grow:1; diff --git a/themes/hugo-casper3/layouts/_default/single.html b/themes/hugo-casper3/layouts/_default/single.html index 96accf4..34976c9 100644 --- a/themes/hugo-casper3/layouts/_default/single.html +++ b/themes/hugo-casper3/layouts/_default/single.html @@ -35,7 +35,7 @@ {{ if ne .Lastmod .Date }} {{ end }} - {{ if isset .Params "license" }}{{ end }} + {{ if isset .Params "license" }}{{ end }} {{ if isset .Params "download" }}{{ end }}  {{ range (.GetTerms "tags") }} {{ .LinkTitle }}   diff --git a/themes/hugo-casper3/layouts/partials/post-card.html b/themes/hugo-casper3/layouts/partials/post-card.html index b7cc624..902d315 100644 --- a/themes/hugo-casper3/layouts/partials/post-card.html +++ b/themes/hugo-casper3/layouts/partials/post-card.html @@ -35,8 +35,8 @@ {{ if ne .context.Lastmod .context.Date }}