forked from Bunteshaus/bunteshaus.de
small fixes
This commit is contained in:
parent
bbbfacc03d
commit
b350c26d3e
|
@ -13,6 +13,6 @@
|
||||||
{{ $partial = "layout/single/nottranslated" }}
|
{{ $partial = "layout/single/nottranslated" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<article>
|
<article>
|
||||||
{{ partial $partial (dict "context" . "pic" $pic "content" .Content "partial_before" $partial_before) }}
|
{{ partial $partial (dict "context" . "pic" $pic "content" .Content "partial_before" $partial_before "type" "article") }}
|
||||||
</article>
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
{{ partial "l1/article_list" (dict "context" . "pages" $featured "amount" "3" "title" "Featured") }}
|
{{ partial "l1/article_list" (dict "context" . "pages" $featured "amount" "3" "title" "Featured") }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if gt (len $posts) 1 }}
|
{{ if gt (len $posts) 1 }}
|
||||||
{{ partial "l1/article_list" (dict "context" . "paginator" $paginator "amount" "5" "title" "News") }}
|
{{ partial "l1/article_list" (dict "context" . "paginator" $paginator "amount" "5" "title" "News" "type" "list") }}
|
||||||
<div id="pagination_outer" style="display: flex; justify-content: center;">
|
<div id="pagination_outer" style="display: flex; justify-content: center;">
|
||||||
{{ partial "snippets/paginator" (dict "paginator" $paginator) }}
|
{{ partial "snippets/paginator" (dict "paginator" $paginator) }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,14 +1,11 @@
|
||||||
{{ $metas := dict "when" .context.Params.when "price" .context.Params.price "contact" .context.Params.contact "covid"
|
{{ $metas := dict "when" .context.Params.when "price" .context.Params.price "contact" .context.Params.contact "covid"
|
||||||
.context.Params.covid }}
|
.context.Params.covid }}
|
||||||
{{ if eq .type "list" }}
|
{{ if eq .context.Type "list" }}
|
||||||
{{ $metas = dict "when" .context.Params.when "price" .context.Params.price }}
|
{{ $metas = dict "when" .context.Params.when "price" .context.Params.price }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ $small := "solo" }}
|
{{ $small := "solo" }}
|
||||||
{{ $big := "solo" }}
|
{{ $big := "solo" }}
|
||||||
{{ $img := "" }}
|
|
||||||
{{ $thumb := "" }}
|
|
||||||
{{ $placeholder := site.Params.placeholder }}
|
|
||||||
|
|
||||||
{{- if or (.context.Resources.ByType "image") (.context.Summary) -}}
|
{{- if or (.context.Resources.ByType "image") (.context.Summary) -}}
|
||||||
{{ $small = "multiple_small" }}
|
{{ $small = "multiple_small" }}
|
||||||
|
@ -17,25 +14,25 @@
|
||||||
{{ $small = "multiple_big"}}
|
{{ $small = "multiple_big"}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{- if .context.Resources.ByType "image" -}}
|
|
||||||
{{- $img = index (.context.Resources.ByType "image") 0 -}}
|
|
||||||
{{ if ne .context.Content "" }}
|
|
||||||
{{- $thumb = $img.Resize "2048x" }}
|
|
||||||
{{ else if .type "list" }}
|
|
||||||
{{- $thumb = $img.Resize "500x" }}
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ partial "snippets/article_metadata" $metas }}
|
{{ partial "snippets/article_metadata" $metas }}
|
||||||
<div id="articleinner">
|
<div id="articleinner">
|
||||||
{{ if and (ne $img "") (eq .pic "true")}}
|
{{- if and (.context.Resources.ByType "image") (eq .pic "true") -}}
|
||||||
<div id="articlepicture" class="{{ $small }}" >
|
{{- $img := index (.context.Resources.ByType "image") 0 -}}
|
||||||
{{ if and (ne .type "list") (.context.Resources.ByType "image") }}<a href="{{- $img.Permalink -}}">{{ end }}
|
{{- $thumb := index (.context.Resources.ByType "image") 0 -}}
|
||||||
<img src="{{- $thumb.Permalink -}}" class="borderrad4px" />
|
{{ if ne .context.Content "" }}
|
||||||
{{ if ne .type "list" }}</a>{{ end }}
|
{{- $thumb = $img.Resize "2048x" }}
|
||||||
{{ if eq .type "article" }}{{ end }}
|
{{ else if eq .type "list" }}
|
||||||
</div>
|
{{- $thumb = $img.Resize "500x" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
<div id="articlepicture" class="{{ $small }}" >
|
||||||
|
{{ 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 }}
|
||||||
{{- if or .context.Content .context.Summary -}}
|
{{- if or .context.Content .context.Summary -}}
|
||||||
<div id="articletext" class="{{ $big }}">
|
<div id="articletext" class="{{ $big }}">
|
||||||
{{ if eq .type "contact" }}{{ partial "structure/contact" }}{{ end }}
|
{{ if eq .type "contact" }}{{ partial "structure/contact" }}{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue