2017-09-07 22:41:16 +03:00
|
|
|
{{ define "main" -}}
|
|
|
|
<ul class="posts">
|
2020-02-10 20:38:11 +02:00
|
|
|
<h1>{{ .Title }}</h1>
|
2022-04-11 22:05:24 +03:00
|
|
|
{{ 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" }}
|
2023-03-26 12:58:03 +03:00
|
|
|
{{ 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>
|
2018-08-29 20:25:01 +03:00
|
|
|
{{- end }}
|