From 9fdd7448e9bfc4b2c4613416ffa009a2508c149e Mon Sep 17 00:00:00 2001 From: teldra Date: Wed, 6 Apr 2022 21:20:16 +0200 Subject: [PATCH] small fixes --- themes/buha/assets/css/layout.css | 2 +- .../_default/_markup/render-image.html | 26 ++++++++++++------- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/themes/buha/assets/css/layout.css b/themes/buha/assets/css/layout.css index 5dd16bfd..79ed20da 100644 --- a/themes/buha/assets/css/layout.css +++ b/themes/buha/assets/css/layout.css @@ -118,7 +118,7 @@ article { } #articletext img { - margin: 1.5rem 1.5rem 3rem 2rem; + border-radius: 15px; width: 80%; } diff --git a/themes/buha/layouts/_default/_markup/render-image.html b/themes/buha/layouts/_default/_markup/render-image.html index ac0d8b1b..3cdd4d57 100644 --- a/themes/buha/layouts/_default/_markup/render-image.html +++ b/themes/buha/layouts/_default/_markup/render-image.html @@ -1,13 +1,17 @@ {{- if strings.HasPrefix .Destination "http" -}} - {{ .Text }} + + {{ .Text }} +
{{ .Text }}
+
{{- else -}} {{ if .Page.Resources.ByType "image" }} {{ $nr := .Destination }} {{- $pic := index (.Page.Resources.ByType "image") (int $nr) -}} {{- $image := .Page.Resources.GetMatch (printf "%s" ($pic | safeURL)) -}} +
{{- $permalink := "" -}} @@ -18,12 +22,14 @@ {{- $permalink = (printf "/%s" (.Destination | safeURL)) -}} {{- end -}} - {{ .Text }} +
{{ .Text }}
+
{{ .Text }}
+
{{ end }} {{- end -}}