hugo-page-test/themes/tsc_vfl/layouts/_default/announcements.html

22 lines
738 B
HTML
Raw Permalink Normal View History

{{ define "main" }}
<a name="top">
<h1>{{ .Title }}</h1>
</a>
{{ .Content }}
<div class="announcement-list">
{{ $announcements := partial "get-announcement-list" . }}
{{ range $announcements }}
{{ $urlBlogEntry := .RelPermalink}}
2024-01-04 16:41:21 +00:00
<div class="entry">
<span class="time">
{{ (time.AsTime .Params.announcement.date).Format "02.01.2006" }}
2024-01-04 16:41:21 +00:00
</span>
<a href="{{ $urlBlogEntry }}">{{ with .Params.announcement.name }}{{.}}{{else}}{{.Title}}{{end}}</a>
</div>
{{ else }}
Aktuell gibt es keine angekündigten Termine.
{{ end }}
</div>
{{ partial "totop" }}
{{ end }}