forked from Bunteshaus/bunteshaus.de
small fixes
This commit is contained in:
parent
b142b7fbc0
commit
a187357939
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: "Neue Homepage"
|
||||
date: "2021-10-23T14:00:00+02:00"
|
||||
date: "2022-03-02T14:00:00+02:00"
|
||||
---
|
||||
Wir präsentieren nun unsere neue Homepage.
|
||||
|
||||
|
|
|
@ -20,9 +20,11 @@
|
|||
{{ end }}
|
||||
{{ $meta := false }}
|
||||
{{ range first 3 (where (where .Site.RegularPages "Type" "in" site.Params.mainSections) ".Params.featured" "=" true) }}
|
||||
{{ $article_age := sub now.Unix (int .Date.Unix) }}
|
||||
{{ if lt $article_age "1209600" }}
|
||||
<article class="articlebgcol1 borderrad25"><a href="{{- .Permalink -}}">
|
||||
<div id="articletitle">
|
||||
<h3>{{- .Title -}}</h3>
|
||||
<h3>{{- .Title -}}</h3>featured
|
||||
</div>
|
||||
<div id="articlecontent">
|
||||
<div id="articlemeta">
|
||||
|
@ -72,6 +74,7 @@
|
|||
</a></article>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{- range first 5 $paginator.Pages -}}
|
||||
{{ if ne .Params.featured true }}
|
||||
<article class="articlebgcol1 borderrad25"><a href="{{- .Permalink -}}">
|
||||
|
|
Loading…
Reference in New Issue
Block a user