28 lines
796 B
HTML
28 lines
796 B
HTML
{{ define "main" -}}
|
|
<ul class="posts">
|
|
<h1>{{ .Title }}</h1>
|
|
{{ with .Content }}
|
|
<div class="index_content">
|
|
{{- . -}}
|
|
</div>
|
|
{{ end }}
|
|
{{ range .Data.Pages -}}
|
|
<li>
|
|
<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 }}
|
|
{{ end }}
|
|
</div>
|
|
</li>
|
|
{{- end }}
|
|
</ul>
|
|
{{- end }}
|