small fixes

This commit is contained in:
teldra 2022-03-28 12:36:58 +02:00
parent b142b7fbc0
commit a187357939
2 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,6 @@
--- ---
title: "Neue Homepage" 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. Wir präsentieren nun unsere neue Homepage.

View File

@ -20,9 +20,11 @@
{{ end }} {{ end }}
{{ $meta := false }} {{ $meta := false }}
{{ range first 3 (where (where .Site.RegularPages "Type" "in" site.Params.mainSections) ".Params.featured" "=" true) }} {{ 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 -}}"> <article class="articlebgcol1 borderrad25"><a href="{{- .Permalink -}}">
<div id="articletitle"> <div id="articletitle">
<h3>{{- .Title -}}</h3> <h3>{{- .Title -}}</h3>featured
</div> </div>
<div id="articlecontent"> <div id="articlecontent">
<div id="articlemeta"> <div id="articlemeta">
@ -70,6 +72,7 @@
</div> </div>
</div> </div>
</a></article> </a></article>
{{ end }}
{{ end }} {{ end }}
{{ end }} {{ end }}
{{- range first 5 $paginator.Pages -}} {{- range first 5 $paginator.Pages -}}