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;
|
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 {
|
||||||
|
|
|
@ -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" }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user