Toevoegen van pagina met laatste wijzigingen

This commit is contained in:
Michael Boelen 2023-05-14 15:23:42 +02:00
parent 41576563e1
commit cbe21727ac
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,18 @@
{{ define "main" }}
<h2>Laatste wijzigingen</h2>
{{ $byLastMod := .Site.RegularPages.ByLastmod.Reverse }}
<table>
{{ range $byLastMod }}
<tr>
<td>{{ .Lastmod }}</td>
<td>{{ .Title }}</td>
<td>{{ with .File }}{{ .Lang }}{{ end }}</td>
<td>{{ with .File }}{{ .Path }}{{ end }}</td>
</tr>
{{ end }}
</table>
<div>{{ .Content }}</div>
{{ end }}