Fix missing partial

This commit is contained in:
Hanzei 2018-07-03 13:21:06 +02:00
parent ceb94b3e91
commit 3418b9f80c
No known key found for this signature in database
GPG key ID: 69A2DEFD98937BA0
3 changed files with 7 additions and 12 deletions

View file

@ -23,12 +23,6 @@
{{ end }} {{ end }}
<h2 class="title is-2 top-pad">{{ i18n "index_blog_allPosts" . }}</h2> <h2 class="title is-2 top-pad">{{ i18n "index_blog_allPosts" . }}</h2>
<ul> {{ partialCached "blog/li.html" . }}
{{ range .Pages.ByPublishDate.Reverse }}
<li class="post-item">
<span><a href="{{ .Permalink }}">{{ .Title }}</a></span> - <span>{{ .Date.Format (.Site.Params.dateform | default "Jan 02, 2006") }}</span>
</li>
{{ end }}
</ul>
</div> </div>
{{ end }} {{ end }}

View file

@ -0,0 +1,5 @@
{{ range .Pages.ByPublishDate.Reverse }}
<li class="post-item">
<span><a href="{{ .Permalink }}">{{ .Title }}</a></span> - <span>{{ .Date.Format (.Site.Params.dateform | default "Jan 02, 2006") }}</span>
</li>
{{ end }}

View file

@ -18,11 +18,7 @@
{{ end }} {{ end }}
{{ if .Site.Params.showAllPosts }} {{ if .Site.Params.showAllPosts }}
<h2 class="title is-2 has-text-centered top-pad">{{ i18n "index_blog_allPosts" . }}</h2> <h2 class="title is-2 has-text-centered top-pad">{{ i18n "index_blog_allPosts" . }}</h2>
<ul> {{ partialCached "blog/li.html" . }}
{{ range .Pages }}
{{ partial "li.html" . }}
{{ end }}
</ul>
{{ else }} {{ else }}
<div class="container has-text-centered top-pad"> <div class="container has-text-centered top-pad">
<a href="{{ .RelPermalink }}">{{ i18n "index_blog_allPosts" . }}</a> <a href="{{ .RelPermalink }}">{{ i18n "index_blog_allPosts" . }}</a>