From 5b778111cf1ef564e31a7f94152df6a54c6d9a71 Mon Sep 17 00:00:00 2001 From: Luca Date: Sat, 11 Mar 2023 16:12:55 +0100 Subject: [PATCH] Fix single page layout --- assets/style.scss | 3 ++- layouts/_default/single.html | 10 +++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/assets/style.scss b/assets/style.scss index b5719d6..343cf50 100644 --- a/assets/style.scss +++ b/assets/style.scss @@ -177,8 +177,9 @@ article { align-items: center; height: 200px; justify-content: center; + min-width: 200px; overflow: hidden; - padding-right: 1.5rem; + margin-right: 1.5rem; width: 200px; @media screen and (min-width: $small) { diff --git a/layouts/_default/single.html b/layouts/_default/single.html index ae9e933..bea8c3e 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -6,7 +6,15 @@
{{ $textContent }}
{{ .Title }} - by {{ .Params.copyright }} +{{ $params := .Params }} +{{ with $params.copyright }} +{{ $copyright := . }} +{{ with $params.copyright_url }} + by {{ $copyright }} +{{ else }} + by {{ $copyright }} +{{ end }} +{{ end }}
{{ else }}