Stefan Bethke
c06c8603ef
All checks were successful
/ build (push) Successful in 13s
* Add a post date to each post * Do not show the post date for tours * Only show posts tagged "current-event" on the home page (hiding 37c3 entries) * Use a custom template for sorting the summary list by title (instead of the default by date)
12 lines
552 B
HTML
12 lines
552 B
HTML
<article class="list-view{{ with .Section }} list-view--{{ . | urlize }}{{ end }}">
|
|
<header>
|
|
{{- $postDate := "" }}
|
|
{{- if .Param "showPostDate" | default false }}
|
|
{{- $postDate = .Params.date.Format .Site.Params.dateFormat }}
|
|
{{- end }}
|
|
<h2 class="title mt--s{{ if $.Param "submitted" | default false }} mb--xxs{{ end }}"><a href="{{ .RelPermalink }}">{{ .Title }}</a> <span class="title-post-date">{{ $postDate }}</span></h2>
|
|
{{ if $.Param "submitted" | default false }}{{ partial "submitted.html" . -}}{{ end }}
|
|
</header>
|
|
|
|
{{ .Summary }}
|
|
</article>
|