pi-www-theme-soho/layouts/_default/list.html

28 lines
796 B
HTML
Raw Normal View History

2017-09-07 22:41:16 +03:00
{{ define "main" -}}
<ul class="posts">
2020-02-10 20:38:11 +02:00
<h1>{{ .Title }}</h1>
{{ with .Content }}
<div class="index_content">
{{- . -}}
</div>
{{ end }}
2020-06-15 20:52:15 +03:00
{{ range .Data.Pages -}}
2017-09-07 22:41:16 +03:00
<li>
2021-02-25 22:56:48 +02:00
<div class="flex">
<a href="{{ .Permalink }}" class="truncate">{{ .Title }}</a>
{{ if eq .Kind "page" }}
{{ if eq .Type "event" -}}
{{ with .Params.eventdate }}
{{ $d := . | time.AsTime }}
<time class="nowrap" datetime="{{ $d.Format "2006-01-02T15:04:05Z0700" }}">{{ $d.Format "2. 1. 2006" }}</time>
{{ end }}
{{- else }}
<time class="nowrap" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "2. 1. 2006" }}</time>
{{- end }}
2021-02-25 22:56:48 +02:00
{{ end }}
</div>
2017-09-07 22:41:16 +03:00
</li>
2020-02-10 20:38:11 +02:00
{{- end }}
2017-09-07 22:41:16 +03:00
</ul>
{{- end }}