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