hugo-page-test/themes/tsc_vfl/layouts/partials/page/left-announcements.html

13 lines
470 B
HTML
Raw Permalink Normal View History

2024-01-04 16:41:21 +00:00
{{ $announcements := partial "get-announcement-list" . }}
<div class="announcements">
{{ range $announcements }}
{{ $urlBlogEntry := .RelPermalink}}
<div class="entry">
<div class="time">
{{ (time.AsTime .Params.announcement.date).Format "02.01.2006" }}
</div>
<a href="{{ $urlBlogEntry }}">{{ with .Params.announcement.name }}{{.}}{{else}}{{.Title}}{{end}}</a>
</div>
{{ end }}
</div>