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 -}}