7
0
Fork 0
This repository has been archived on 2024-10-15. You can view files and clone it, but cannot push or open issues or pull requests.
fediversity_website_archive/themes/nluug/layouts/index.html
2024-02-01 14:37:55 +01:00

38 lines
1.3 KiB
HTML

{{ define "main" }}
<article>
{{ .Content }}
{{ if gt (len (where .Site.RegularPages "Section" "nieuws")) 0 }}
<section>
<h2>Latest news</h2>
<ul class="list">
{{ range (first 5 (where .Site.RegularPages "Section" "nieuws").ByDate.Reverse) }}
<li>
<a class="link" href="{{ .RelPermalink }}">{{ .Title }}</a>
<hr class="hr-list">
<time class="g time" datetime="{{ dateFormat "2006-01-02" .Date }}">{{ dateFormat "02-01-2006" .Date }}</time>
</li>
{{ end }}
</ul>
</section>
{{ end }}
<section>
{{ $upcoming_events := sort .Site.Data.evenementen.kalender "date_start" "asc" }}
<h2>Upcoming events</h2>
<p>The upcoming events where Fediversity will be present:</p>
<ul>
{{ range first 10 (where $upcoming_events "date_start" "ge" (dateFormat "2006-01-02" now)) }}
<li><time datetime="{{ .date_start | dateFormat "2006-01-02" }}">{{ .date_start | dateFormat "02-01-2006" }}</time> - <a href="/evenementen/kalender/#{{ anchorize (.date_start | dateFormat "2006-01-02") }}-{{ anchorize .name }}">{{ .name }}</a></li>
{{ end }}
</ul>
<p>&raquo; <a href="/evenementen/kalender/">Entire calendar.</a></p>
</section>
</article>
{{ end }}