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