This repository has been archived on 2024-11-13. You can view files and clone it, but cannot push or open issues or pull requests.
fediversity_website/themes/nluug/layouts/index.html

15 lines
513 B
HTML
Raw Normal View History

{{ define "content" }}
{{ .Content }}
{{ if gt (len ( where .Site.RegularPages "Section" "posts" )) 0 }}
<h1>Latest Post</h1>
<section>
{{ range (first 3 (where .Site.RegularPages "Section" "posts" ).ByDate.Reverse) }}
<p>
<time class="g time" datetime="{{ dateFormat "2006-01-02" .Date }}">{{ dateFormat "2006-01-02" .Date }}</time>&nbsp;
<a href="{{ .Permalink }}">{{ .Title }}</a>
<p>
{{ end }}
</section>
{{ end }}
{{ end }}