small fixes

This commit is contained in:
teldra 2022-04-04 13:00:55 +02:00
parent 64326ee377
commit 527b5301da

View File

@ -19,7 +19,7 @@
{{ .Content }} {{ .Content }}
</article> </article>
{{ end }} {{ end }}
{{ range first 3 $featured.ByLastmod }} {{ range first 3 $featured.ByLastmod.Reverse }}
{{ $article_age := sub now.Unix (int .Date.Unix) }} {{ $article_age := sub now.Unix (int .Date.Unix) }}
{{ if lt $article_age "1209600" }} {{ if lt $article_age "1209600" }}
{{ partial "structure/list_article.html" . }} {{ partial "structure/list_article.html" . }}