fediversity_website/themes/nluug/layouts/index.html

38 lines
1.3 KiB
HTML
Raw Normal View History

{{ define "main" }}
<article>
{{ .Content }}
{{ if gt (len (where .Site.RegularPages "Section" "nieuws")) 0 }}
2023-05-17 20:58:43 +02:00
<section>
2024-02-01 14:37:55 +01:00
<h2>Latest news</h2>
<ul class="list">
2023-05-17 20:58:43 +02:00
{{ 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>
2023-05-17 20:58:43 +02:00
</section>
{{ end }}
<section>
{{ $upcoming_events := sort .Site.Data.evenementen.kalender "date_start" "asc" }}
2024-02-01 14:37:55 +01:00
<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)) }}
2023-05-24 00:54:58 +02:00
<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>
2024-02-01 14:37:55 +01:00
<p>&raquo; <a href="/evenementen/kalender/">Entire calendar.</a></p>
</section>
2024-02-01 14:37:55 +01:00
</article>
{{ end }}