small fixes

This commit is contained in:
teldra 2022-03-27 04:28:30 +02:00
parent 95e8988e04
commit 7e3c10e448
2 changed files with 6 additions and 3 deletions

View File

@ -196,7 +196,7 @@ article h3 {
flex-direction: row; flex-direction: row;
} }
.text { .text, #articleimage {
margin-top: .5rem; margin-top: .5rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -204,7 +204,6 @@ article h3 {
margin-right: 1rem; margin-right: 1rem;
max-width: 30%; max-width: 30%;
min-width: 1rem; min-width: 1rem;
height: 100%;
} }
.notext { .notext {

View File

@ -35,7 +35,11 @@
<div id="articleinner"> <div id="articleinner">
<div id="articledata"> <div id="articledata">
{{- if .Resources.ByType "image" -}} {{- if .Resources.ByType "image" -}}
<div id="articleimage"> {{ if eq .Content "" }}
<div class="notext">
{{ else }}
<div class="text">
{{ end }}
{{ range .Resources.ByType "image" }} {{ range .Resources.ByType "image" }}
{{- $pic := . -}} {{- $pic := . -}}
{{- $thumb := $pic.Resize "1024x" }} {{- $thumb := $pic.Resize "1024x" }}