forked from Bunteshaus/bunteshaus.de
small fixes
This commit is contained in:
parent
95e8988e04
commit
7e3c10e448
|
@ -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 {
|
||||
|
|
|
@ -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" }}
|
||||
|
|
Loading…
Reference in New Issue
Block a user