mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-09 14:59:45 +00:00
Fix missing partial
This commit is contained in:
parent
ceb94b3e91
commit
3418b9f80c
3 changed files with 7 additions and 12 deletions
|
@ -23,12 +23,6 @@
|
|||
|
||||
{{ end }}
|
||||
<h2 class="title is-2 top-pad">{{ i18n "index_blog_allPosts" . }}</h2>
|
||||
<ul>
|
||||
{{ 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>
|
||||
{{ partialCached "blog/li.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
5
layouts/partials/blog/li.html
Normal file
5
layouts/partials/blog/li.html
Normal 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 }}
|
|
@ -18,11 +18,7 @@
|
|||
{{ end }}
|
||||
{{ if .Site.Params.showAllPosts }}
|
||||
<h2 class="title is-2 has-text-centered top-pad">{{ i18n "index_blog_allPosts" . }}</h2>
|
||||
<ul>
|
||||
{{ range .Pages }}
|
||||
{{ partial "li.html" . }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ partialCached "blog/li.html" . }}
|
||||
{{ else }}
|
||||
<div class="container has-text-centered top-pad">
|
||||
<a href="{{ .RelPermalink }}">{{ i18n "index_blog_allPosts" . }}</a>
|
||||
|
|
Loading…
Reference in a new issue