From 3418b9f80ccf4e190bc14281da3f02a259b4734b Mon Sep 17 00:00:00 2001 From: Hanzei Date: Tue, 3 Jul 2018 13:21:06 +0200 Subject: [PATCH] Fix missing partial --- layouts/blog/list.html | 8 +------- layouts/partials/blog/li.html | 5 +++++ layouts/partials/home/blog.html | 6 +----- 3 files changed, 7 insertions(+), 12 deletions(-) create mode 100644 layouts/partials/blog/li.html diff --git a/layouts/blog/list.html b/layouts/blog/list.html index fe351b6..eede8cc 100644 --- a/layouts/blog/list.html +++ b/layouts/blog/list.html @@ -23,12 +23,6 @@ {{ end }}

{{ i18n "index_blog_allPosts" . }}

- + {{ partialCached "blog/li.html" . }} {{ end }} diff --git a/layouts/partials/blog/li.html b/layouts/partials/blog/li.html new file mode 100644 index 0000000..9a79283 --- /dev/null +++ b/layouts/partials/blog/li.html @@ -0,0 +1,5 @@ +{{ range .Pages.ByPublishDate.Reverse }} +
  • + {{ .Title }} - {{ .Date.Format (.Site.Params.dateform | default "Jan 02, 2006") }} +
  • +{{ end }} diff --git a/layouts/partials/home/blog.html b/layouts/partials/home/blog.html index bb323c9..b26801c 100644 --- a/layouts/partials/home/blog.html +++ b/layouts/partials/home/blog.html @@ -18,11 +18,7 @@ {{ end }} {{ if .Site.Params.showAllPosts }}

    {{ i18n "index_blog_allPosts" . }}

    - + {{ partialCached "blog/li.html" . }} {{ else }}
    {{ i18n "index_blog_allPosts" . }}