From 061c6047d1ab37ab7073b657dc76d86e89e68639 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 25 Apr 2021 18:40:52 +0200 Subject: [PATCH] Fix post content --- layouts/_default/list.html | 46 +++++++++++++++----------------------- layouts/post/list.html | 42 +++++++++++++++++----------------- layouts/post/single.html | 4 +--- 3 files changed, 39 insertions(+), 53 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index f1e10c0..6579599 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,38 +1,28 @@ {{ partial "header.html" . }} {{ partial "navbar.html" . }} -
- {{ $paginator := .Paginate (where .Data.Pages "Type" "blog") }}{{ range $paginator.Pages }} -
-
-
-
- {{ .Title }} -

- {{ .Date.Format "2006-01-02" }} -

-
-
- +
+
+
+ {{ partial "menu" . }} +
+
- {{ .Summary }} -
+ {{ .Content }} - - Read more - + {{ range .Pages.GroupBy "Section" }} +

{{ .Key | title }}

+ + {{ end }} +
- {{ end }} - -
{{ partial "footer.html" . }} diff --git a/layouts/post/list.html b/layouts/post/list.html index 6aea8d3..d4b8c90 100644 --- a/layouts/post/list.html +++ b/layouts/post/list.html @@ -3,38 +3,36 @@
{{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}{{ range $paginator.Pages }} -
-
-
-
- {{ .Title }} -

{{ .Date.Format "Mon Jan 2, 2006" }} {{ i18n "authored_by" }} - - {{ .Params.author | default .Site.Params.author }} - -

-
+
+
+
+
+ {{ .Title }} +

+ {{ .Date.Format "2006-01-02" }} +

- -
- {{ .Summary }} -
- - - {{ i18n "read_more" }} -
+ +
+ {{ .Summary }} +
+ + + Read more +
+
{{ end }}
-{{ partial "footer.html" . }} \ No newline at end of file +{{ partial "footer.html" . }} diff --git a/layouts/post/single.html b/layouts/post/single.html index 632628c..b038ee9 100644 --- a/layouts/post/single.html +++ b/layouts/post/single.html @@ -9,9 +9,7 @@

- {{ .Date.Format "Mon Jan 2, 2006" }} - {{ i18n "authored_by" }} - {{ .Params.author | default .Site.Params.author }} + {{ .Date.Format "2006-01-02" }}

{{ partial "headline-hash.html" .Content }}