mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-12-22 22:52:54 +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 }}
|
{{ 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 }}
|
||||||
|
|
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 }}
|
{{ 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>
|
||||||
|
|
Loading…
Reference in a new issue