diff options
author | Angelo <AIRyndon@users.noreply.github.com> | 2020-12-24 11:31:47 +0300 |
---|---|---|
committer | Angelo <AIRyndon@users.noreply.github.com> | 2020-12-24 11:31:47 +0300 |
commit | 630c4c6b48344901eef91d6153cba5cae5a2a15a (patch) | |
tree | 26cf835dc21011a9bd31ca29a22c5ecfff30e55d /layouts/partials/home/blog.html | |
parent | 6925c0248cf70674576d42d173ff33b00a3d522a (diff) |
add archive format to all posts
Diffstat (limited to 'layouts/partials/home/blog.html')
-rw-r--r-- | layouts/partials/home/blog.html | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/layouts/partials/home/blog.html b/layouts/partials/home/blog.html index 0582a20..9f6cd59 100644 --- a/layouts/partials/home/blog.html +++ b/layouts/partials/home/blog.html @@ -16,22 +16,28 @@ </div> {{ end }} {{ end }} - {{ if .Site.Params.home.showAllPosts }} </div> </div> -<div class="section" id="all-posts"> - <div class="container"> - <h2 class="title is-2 has-text-centered top-pad">{{ i18n "index_blog_allPosts" . }}</h2> - {{ partialCached "blog/li.html" . }} - {{ else }} + {{ if .Site.Params.home.showAllPosts }} + <div class="section" id="all-posts"> + <div class="container"> + <h2 class="title is-2 top-pad">{{ i18n "index_blog_allPosts" . }}</h2> + {{if .Site.Params.home.allPostsArchiveFormat}} + {{ partialCached "blog/archive.html" .}} + {{else}} + {{ partialCached "blog/li.html" . }} + {{end}} + </div> + </div> + {{ else }} <div class="container has-text-centered top-pad"> <a href="{{ .Permalink }}">{{ i18n "index_blog_allPosts" . }}</a> </div> - {{ end }} - </div> - <!-- End Blog container --> - {{ partial "top-icon.html" . }} -</div> + {{ end }} + +<!-- End Blog container --> +{{ partial "top-icon.html" . }} + <!-- End Blog section --> <div class="container"><hr></div> {{ end }} |