From 973d3e502d8e5f9e3d3ca7102b59d72dad63f55d Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Tue, 20 Apr 2021 12:42:55 +0200 Subject: [PATCH] temp home --- layouts/_default/index.html | 83 +++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 layouts/_default/index.html diff --git a/layouts/_default/index.html b/layouts/_default/index.html new file mode 100644 index 0000000..f7daf37 --- /dev/null +++ b/layouts/_default/index.html @@ -0,0 +1,83 @@ +{{ define "main" }} + {{ if .Content }} +
+ {{ .Content }} +
+ {{ end }} + +
+ +
+

Dokumentation

+
+ Mit der Nutzung unserer Dienste auf xd0.de stimmt ihr den Nutzungsbedingungen und der Datenschutzrichtlinie zu. + +
+
+ + + + {{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "posts") (eq (trim $.Site.Params.contentTypeName " ") "")) }} + {{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "posts" }} + + {{ $PageContext := . }} + {{ if .IsHome }} + {{ $PageContext = .Site }} + {{ end }} + {{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }} + + {{ range $paginator.Pages }} +
+

+ {{ .Title | markdownify }} +

+ + + {{ if .Params.tags }} + + {{ end }} + + {{ if .Params.Cover }} + {{ .Title | plainify | default + {{ end }} + +
+ {{ if .Params.showFullContent }} + {{ .Content | markdownify }} + {{ else if .Description }} + {{ .Description | markdownify }} + {{ else }} + {{ if .Truncated }} + {{ .Summary }} + {{ end }} + {{ end }} +
+ + {{ if not .Params.showFullContent }} +
+ {{ $.Site.Params.ReadMore }} → +
+ {{ end }} +
+ {{ end }} + {{ partial "pagination.html" . }} +
+{{ end }}