From 7e3c10e448262eb720a2e2a4276755c3d002b2d4 Mon Sep 17 00:00:00 2001 From: teldra Date: Sun, 27 Mar 2022 04:28:30 +0200 Subject: [PATCH] small fixes --- themes/buha/assets/css/layout.css | 3 +-- themes/buha/layouts/_default/single.html | 6 +++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/themes/buha/assets/css/layout.css b/themes/buha/assets/css/layout.css index 336e836e..32dbaa4c 100644 --- a/themes/buha/assets/css/layout.css +++ b/themes/buha/assets/css/layout.css @@ -196,7 +196,7 @@ article h3 { flex-direction: row; } - .text { + .text, #articleimage { margin-top: .5rem; display: flex; flex-direction: column; @@ -204,7 +204,6 @@ article h3 { margin-right: 1rem; max-width: 30%; min-width: 1rem; - height: 100%; } .notext { diff --git a/themes/buha/layouts/_default/single.html b/themes/buha/layouts/_default/single.html index 74d0fdcb..90ec0106 100644 --- a/themes/buha/layouts/_default/single.html +++ b/themes/buha/layouts/_default/single.html @@ -35,7 +35,11 @@
{{- if .Resources.ByType "image" -}} -
+ {{ if eq .Content "" }} +
+ {{ else }} +
+ {{ end }} {{ range .Resources.ByType "image" }} {{- $pic := . -}} {{- $thumb := $pic.Resize "1024x" }}