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;
}
.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 {

View File

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