forked from Bunteshaus/bunteshaus.de
small fixes
This commit is contained in:
parent
ba7112f43d
commit
ae4b0d435c
|
@ -70,6 +70,10 @@ article #readmore {
|
||||||
flex: 0 1 72%;
|
flex: 0 1 72%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.multiple_medium {
|
||||||
|
flex: 0 1 50%;
|
||||||
|
}
|
||||||
|
|
||||||
.solo {
|
.solo {
|
||||||
flex: 0 0 100%;
|
flex: 0 0 100%;
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,6 +35,10 @@
|
||||||
margin-left: 1rem;
|
margin-left: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.margin_right_1rem {
|
||||||
|
margin-right: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
.margin_top_1rem {
|
.margin_top_1rem {
|
||||||
margin-top: 1.1rem;
|
margin-top: 1.1rem;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,18 +10,14 @@
|
||||||
{{- if .context.Resources.ByType "image" -}}
|
{{- if .context.Resources.ByType "image" -}}
|
||||||
{{- $img = index (.context.Resources.ByType "image") 0 -}}
|
{{- $img = index (.context.Resources.ByType "image") 0 -}}
|
||||||
{{- $thumb = $img.Resize "1024x" }}
|
{{- $thumb = $img.Resize "1024x" }}
|
||||||
{{ if .content }}
|
|
||||||
{{- $thumb = $img.Resize "500x" }}
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<section>
|
<section>
|
||||||
<div id="articleinner">
|
<div id="articleinner">
|
||||||
{{ if and (ne $img "") (eq .pic true)}}
|
{{ if (ne $img "") }}
|
||||||
<div id="articlepicture" class="{{ $pic }}">
|
<div id="articlepicture" class="{{ "multiple_medium" }} margin_right_1rem">
|
||||||
{{ if and (ne .type "list") (.context.Resources.ByType "image") }}<a href="{{- $img.Permalink -}}">{{ end }}
|
{{ if and (ne .type "list") (.context.Resources.ByType "image") }}<a href="{{- $img.Permalink -}}">{{ end }}
|
||||||
<img src="{{- $thumb.Permalink -}}" class="borderrad4px" />
|
<img src="{{- $thumb.Permalink -}}" class="borderrad4px" />
|
||||||
{{ if ne .type "list" }}</a>{{ end }}
|
{{ if ne .type "list" }}</a>{{ end }}
|
||||||
{{ if eq .type "article" }}{{ end }}
|
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div id="articletext" class="{{ $text }}">
|
<div id="articletext" class="{{ $text }}">
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
{{- if and (.context.Resources.ByType "image") (.context.Content) -}}
|
{{- if and (.context.Resources.ByType "image") (.context.Content) -}}
|
||||||
{{ $pic = "multiple_small" }}
|
{{ $pic = "multiple_small" }}
|
||||||
{{ $text = "multiple_big" }}
|
{{ $text = "multiple_big" }}
|
||||||
|
{{ else if and (.context.Resources.ByType "image") (not (.context.Content)) }}
|
||||||
|
{{ $pic = "multiple_medium" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ partial "snippets/article_metadata" $metas }}
|
{{ partial "snippets/article_metadata" $metas }}
|
||||||
|
@ -19,9 +21,9 @@
|
||||||
{{- $img := index (.context.Resources.ByType "image") 0 -}}
|
{{- $img := index (.context.Resources.ByType "image") 0 -}}
|
||||||
{{- $thumb := index (.context.Resources.ByType "image") 0 -}}
|
{{- $thumb := index (.context.Resources.ByType "image") 0 -}}
|
||||||
{{ if ne .context.Content "" }}
|
{{ if ne .context.Content "" }}
|
||||||
{{- $thumb = $img.Resize "2048x" }}
|
{{- $resize = "2048x" }}
|
||||||
{{ else if eq .type "list" }}
|
{{ else if eq .type "list" }}
|
||||||
{{- $thumb = $img.Resize "500x" }}
|
{{- $resize = "500x" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{- $thumb = $img.Resize $resize }}
|
{{- $thumb = $img.Resize $resize }}
|
||||||
<div id="articlepicture" class="{{ $pic }}" >
|
<div id="articlepicture" class="{{ $pic }}" >
|
||||||
|
|
Loading…
Reference in New Issue