From c7d58ad8725ab98a307039f1ae9e0c7ab08a3686 Mon Sep 17 00:00:00 2001 From: Gianmarco Gargiulo Date: Sat, 22 Jul 2023 18:09:35 +0200 Subject: [PATCH] Changed the post navigation part and how post cards resize and added a default post thumbnail --- static/images/nothumb.svg | 2566 +++++++++++++++++ themes/hugo-casper3/assets/scss/main.scss | 23 +- .../layouts/partials/post-card.html | 4 + .../layouts/partials/post-navigation.html | 8 +- 4 files changed, 2597 insertions(+), 4 deletions(-) create mode 100644 static/images/nothumb.svg diff --git a/static/images/nothumb.svg b/static/images/nothumb.svg new file mode 100644 index 0000000..5393abb --- /dev/null +++ b/static/images/nothumb.svg @@ -0,0 +1,2566 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No image + + + + + + + + + + + + + + + + + diff --git a/themes/hugo-casper3/assets/scss/main.scss b/themes/hugo-casper3/assets/scss/main.scss index e6fbfc1..bc7bb86 100644 --- a/themes/hugo-casper3/assets/scss/main.scss +++ b/themes/hugo-casper3/assets/scss/main.scss @@ -756,7 +756,7 @@ h5,h6{ } .post-card-image{ width:100%; - height:200px; + height:100%; -o-object-fit:cover; object-fit:cover } @@ -1690,7 +1690,7 @@ h5,h6{ display:flex; flex-wrap:wrap; margin:0 -25px; - padding:60px 0 0 + padding:30px 0 0 } .read-next-card{ position:relative; @@ -1727,6 +1727,25 @@ h5,h6{ } } } +.read-next-section-header h3{ + margin:0; + color:hsla(0,0%,100%,.6); + font-family:Mustica Pro; + font-size:2rem; + line-height:1em; + font-weight:300; + letter-spacing:.4px; + padding-top: 30px; + a{ + color:#fff; + font-weight:500; + text-decoration:none; + opacity:.8; + &:hover{ + opacity:1; + } + } +} .read-next-card-content{ font-size:1.7rem; & ul{ diff --git a/themes/hugo-casper3/layouts/partials/post-card.html b/themes/hugo-casper3/layouts/partials/post-card.html index 986024d..d61c222 100644 --- a/themes/hugo-casper3/layouts/partials/post-card.html +++ b/themes/hugo-casper3/layouts/partials/post-card.html @@ -8,6 +8,10 @@ {{ .context.Title }} + {{ else }} + + {{ .context.Title }} + {{ end }}
diff --git a/themes/hugo-casper3/layouts/partials/post-navigation.html b/themes/hugo-casper3/layouts/partials/post-navigation.html index f9afa4e..2ac76af 100644 --- a/themes/hugo-casper3/layouts/partials/post-navigation.html +++ b/themes/hugo-casper3/layouts/partials/post-navigation.html @@ -1,9 +1,13 @@ \ No newline at end of file +