diff --git a/themes/buha/assets/scss/article.scss b/themes/buha/assets/scss/article.scss index 670cffb7..85c9fcb7 100644 --- a/themes/buha/assets/scss/article.scss +++ b/themes/buha/assets/scss/article.scss @@ -1,12 +1,15 @@ article { - .article-image { + .article_image { display: flex; justify-content: center; flex-direction: column; align-items: center; margin-bottom: 1.5rem; + width: 80vw; + margin-left: auto; + margin-right: auto; img { - width: 65vw; + width: 80vw; } &> a { display: inherit; @@ -75,9 +78,12 @@ article { align-items: flex-start; } article { - .article-image { + .article_image { + width: 55vw; + margin-left: auto; + margin-right: auto; img { - width: 45vw; + width: 55vw; } } } diff --git a/themes/buha/layouts/_default/_markup/render-image.html b/themes/buha/layouts/_default/_markup/render-image.html index ca3633bd..ab68255b 100644 --- a/themes/buha/layouts/_default/_markup/render-image.html +++ b/themes/buha/layouts/_default/_markup/render-image.html @@ -21,8 +21,6 @@ {{ end }} {{ if $img_tmp }} {{- $image := .Page.Resources.GetMatch (printf "%s" ($img_tmp | safeURL)) -}} -
- {{- $permalink := "" -}} {{- if ne $image nil -}} @@ -32,15 +30,15 @@ {{- $permalink = (printf "/%s" (.Destination | safeURL)) -}} {{- end -}} + {{ .Text }} -
{{ .Text }}
+ height="{{ $image.Height }}" />
+ {{ .Text }}
-
{{ end }} {{ end }} {{- end -}} diff --git a/themes/buha/layouts/partials/layout/article.html b/themes/buha/layouts/partials/layout/article.html index 52c73e4d..e35ff0cc 100644 --- a/themes/buha/layouts/partials/layout/article.html +++ b/themes/buha/layouts/partials/layout/article.html @@ -46,16 +46,14 @@ {{ range .context.Resources.ByType "image" }} {{ $picname := . }} {{ if not (or (in $content $picname ) (hasPrefix $picname "banner") )}} -
- + {{ . }} + width={{ $picname.Width }} + height="{{ $picname.Height }}" /> -
{{ end }} {{ end }} {{ end }}