diff --git a/layouts/404.html b/layouts/404.html index 808b8e5..1e9d5c4 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -4,7 +4,8 @@

404

This is a dead link. Whatever was here, it's gone now.

- Let's pretend this never happened. + Let's pretend this never happened.

diff --git a/layouts/index.html b/layouts/index.html index 99f07ea..84e000d 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,7 +1,9 @@ {{ define "main" }}
- {{ partial "posts/list.html" . }} + {{ with .Site.GetPage "/posts" }} + {{ partial "posts/list.html" . }} + {{ end }}
{{ end }} diff --git a/layouts/partials/posts/item.html b/layouts/partials/posts/item.html deleted file mode 100644 index 4bb83dc..0000000 --- a/layouts/partials/posts/item.html +++ /dev/null @@ -1,11 +0,0 @@ -{{ if not .Params.private }} - -

{{ .Title }}

-
{{ .Summary }}
-
- {{ .Date | time.Format ":date_medium" }} - · - {{ printf "%d MIN READ" .ReadingTime }} -
-
-{{ end }} diff --git a/layouts/partials/posts/list.html b/layouts/partials/posts/list.html index 9e5b0fa..29bc0cc 100644 --- a/layouts/partials/posts/list.html +++ b/layouts/partials/posts/list.html @@ -1,7 +1,15 @@
- {{ with .Site.GetPage "/posts" }} - {{ range sort .Pages "Date" "desc" }} - {{ partial "posts/item.html" . }} + {{ range sort .Pages "Date" "desc" }} + {{ if not .Params.private }} + +

{{ .Title }}

+
{{ .Summary }}
+
+ {{ .Date | time.Format ":date_medium" }} + · + {{ printf "%d MIN READ" .ReadingTime }} +
+
{{ end }} {{ end }}