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

30 lines
1,020 B
HTML
Raw Normal View History

{{ define "main" }}
{{ .Content }}
{{ if gt (len (where .Site.RegularPages "Section" "nieuws")) 0 }}
<h2>Laatste nieuws</h2>
<section>
<ul reversed class="list">
{{ range (first 3 (where .Site.RegularPages "Section" "nieuws").ByDate.Reverse) }}
<li>
<a class="link" href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a>
<hr class="hr-list">
<time class="g time" datetime="{{ dateFormat "2006-01-02" .Date }}">{{ dateFormat "2006-01-02" .Date }}</time>
</li>
{{ end }}
</ul>
</section>
{{ end }}
{{ if gt (len (.Site.Data.projecten.open)) 0 }}
<h2>Lopende projecten</h2>
<ul>
{{ range $.Site.Data.projecten.open }}
<li>{{ .name }} ({{ .description_short }})</li>
{{ end }}
</ul>
<p>Op de pagina <a href="/projecten/">Projecten</a> beschrijven we deze en andere projecten. Meehelpen? Contacteer een actief projectlid voor meer informatie.</p>
{{ end }}
{{ end }}