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/custom/latest-changes.html
2023-05-15 13:18:38 +02:00

34 lines
870 B
HTML

{{ define "main" }}
<div>{{ .Content }}</div>
<h2>Laatste wijzigingen</h2>
{{ $byLastMod := .Site.RegularPages.ByLastmod.Reverse }}
<div class="table-wrapper">
<table class="fl-table">
<thead>
<tr>
<th>Datum</th>
<th>Titel</th>
{{ if .Site.IsServer }}
<th>Taal</th>
<th>Bestandsnaam</th>
{{ end }}
</tr>
</thead>
<tbody>
{{ range first 50 $byLastMod }}
<tr>
<td>{{ .Lastmod | dateFormat "2006-01-02 15:04:05" }}</td>
<td><a href="{{ .RelPermalink }}">{{ .Title }}</a></td>
{{ if .Site.IsServer }}
<td>{{ with .File }}{{ .Lang }}{{ end }}</td>
<td>{{ with .File }}{{ .Path }}{{ end }}</td>
{{ end }}
</tr>
{{ end }}
</tbody>
</table>
</div>
{{ end }}