small fixes
This commit is contained in:
parent
ebc8d4c7f4
commit
1a24d414e9
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
title: "Neue Homepage"
|
title: "Neue Homepage"
|
||||||
date: "2021-10-23T14:00:00+02:00"
|
date: "2021-10-23T14:00:00+02:00"
|
||||||
|
featured: true
|
||||||
---
|
---
|
||||||
Wir präsentieren nun unsere neue Homepage.
|
Wir präsentieren nun unsere neue Homepage.
|
||||||
|
|
||||||
|
|
|
@ -64,53 +64,55 @@
|
||||||
{{- $paginator := slice -}}
|
{{- $paginator := slice -}}
|
||||||
{{- $paginator = .Paginate $posts.ByLastmod.Reverse -}}
|
{{- $paginator = .Paginate $posts.ByLastmod.Reverse -}}
|
||||||
{{- range first 5 $paginator.Pages -}}
|
{{- range first 5 $paginator.Pages -}}
|
||||||
<article class="articlebgcol1 borderrad25"><a href="{{- .Permalink -}}">
|
{{ if ne .Params.featured true }}
|
||||||
<div id="articletitle">
|
<article class="articlebgcol1 borderrad25"><a href="{{- .Permalink -}}">
|
||||||
<h3>{{- .Title -}}</h3>
|
<div id="articletitle">
|
||||||
</div>
|
<h3>{{- .Title -}}</h3>
|
||||||
<div id="articlecontent">
|
</div>
|
||||||
<div id="articlemeta">
|
<div id="articlecontent">
|
||||||
{{ if and (ne .Params.when "") (ne .Params.when nil) }}
|
<div id="articlemeta">
|
||||||
<div style="margin-bottom: .4em;">{{ .Params.when }}</div>
|
{{ if and (ne .Params.when "") (ne .Params.when nil) }}
|
||||||
{{ end }}
|
<div style="margin-bottom: .4em;">{{ .Params.when }}</div>
|
||||||
{{ if and (ne .Params.price "") (ne .Params.price nil) }}
|
|
||||||
{{ if eq .Params.price "free" }}
|
|
||||||
<div style="margin-bottom: .4em;">Der Eintritt ist frei.</div>
|
|
||||||
{{ else }}
|
|
||||||
<div style="margin-bottom: .4em;">Eintritt: {{ .Params.price }}</div>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ if and (ne .Params.price "") (ne .Params.price nil) }}
|
||||||
</div>
|
{{ if eq .Params.price "free" }}
|
||||||
<div id="articleinner">
|
<div style="margin-bottom: .4em;">Der Eintritt ist frei.</div>
|
||||||
<div id="articledata">
|
|
||||||
{{- if .Resources.ByType "image" -}}
|
|
||||||
{{- $pic := index (.Resources.ByType "image") 0 -}}
|
|
||||||
{{ $thumb := "" }}
|
|
||||||
{{ if eq .Content "" }}
|
|
||||||
<div class="notext">
|
|
||||||
{{- $thumb = $pic.Resize "1024x" }}
|
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<div class="text">
|
<div style="margin-bottom: .4em;">Eintritt: {{ .Params.price }}</div>
|
||||||
{{- $thumb = $pic.Resize "2048x" }}
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
<div id="articleinner">
|
||||||
|
<div id="articledata">
|
||||||
|
{{- if .Resources.ByType "image" -}}
|
||||||
|
{{- $pic := index (.Resources.ByType "image") 0 -}}
|
||||||
|
{{ $thumb := "" }}
|
||||||
|
{{ if eq .Content "" }}
|
||||||
|
<div class="notext">
|
||||||
|
{{- $thumb = $pic.Resize "1024x" }}
|
||||||
|
{{ else }}
|
||||||
|
<div class="text">
|
||||||
|
{{- $thumb = $pic.Resize "2048x" }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
<img src="{{- $thumb.Permalink -}}"/>
|
<img src="{{- $thumb.Permalink -}}"/>
|
||||||
|
</div>
|
||||||
|
{{- end }}
|
||||||
|
<div id="articletext">
|
||||||
|
{{- if .Params.description -}}
|
||||||
|
{{- .Params.description -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- .Summary -}}
|
||||||
|
{{- end }}
|
||||||
|
{{ if .Truncated }}
|
||||||
|
<div id="readmore">{{- i18n "readmore" -}}..</div>
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{- end }}
|
|
||||||
<div id="articletext">
|
|
||||||
{{- if .Params.description -}}
|
|
||||||
{{- .Params.description -}}
|
|
||||||
{{- else -}}
|
|
||||||
{{- .Summary -}}
|
|
||||||
{{- end }}
|
|
||||||
{{ if .Truncated }}
|
|
||||||
<div id="readmore">{{- i18n "readmore" -}}..</div>
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</a></article>
|
||||||
</a></article>
|
{{ end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
<div id="pagination">
|
<div id="pagination">
|
||||||
<!-- Number of links either side of the current page. -->
|
<!-- Number of links either side of the current page. -->
|
||||||
|
|
Loading…
Reference in New Issue