-
{{ time.Format "2" .date}}
-
{{ time.Format "Jan 2006" .date}}
+
{{ time.Format "2" .date}}
+
{{ time.Format "Jan 2006" .date}}
{{ with .enddate }}
bis {{ time.Format "2 Jan 2006" . }}{{ end }}
diff --git a/layouts/schulchronik/single.html b/layouts/schulchronik/single.html
index 59bc9930..630a1272 100644
--- a/layouts/schulchronik/single.html
+++ b/layouts/schulchronik/single.html
@@ -42,15 +42,15 @@
{{ $topics := slice }}
{{ if .Params.pretext }}
- {{ $topics = $topics | append (slice (slice .Params.Title 200 (md5 .Title))) }}
+ {{ $topics = $topics | append (dict "Title" .Params.Title "Size" (int 200) "ID" (md5 .Title)) }}
{{ else }}
- {{ $topics = $topics | append (slice (slice .Params.Title 200)) }}
+ {{ $topics = $topics | append (dict "Title" .Params.Title "Size" (int 200)) }}
{{ end }}
{{ range .Params.topics }}
{{ if .superhaufen.enable }}
- {{ $topics = $topics | append (slice (slice .title 30 (.superhaufen.link | urlize) "superhaufen" )) }}
+ {{ $topics = $topics | append (dict "Title" .title "Size" 30 "ID" (.superhaufen.link | urlize) "Superhaufen" true ) }}
{{ else }}
- {{ $topics = $topics | append (slice (slice .title 30 (md5 .title) )) }}
+ {{ $topics = $topics | append (dict "Title" .title "Size" 30 "ID" (md5 .title)) }}
{{ end }}
{{ end }}