Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/home/blog.html')
-rw-r--r--layouts/partials/home/blog.html30
1 files changed, 18 insertions, 12 deletions
diff --git a/layouts/partials/home/blog.html b/layouts/partials/home/blog.html
index 2c2b55b..9f6cd59 100644
--- a/layouts/partials/home/blog.html
+++ b/layouts/partials/home/blog.html
@@ -6,7 +6,7 @@
<h2 class="title is-2 has-text-centered">{{ i18n "index_blog_latestPosts" . }}</h2>
{{ range first 1 .Pages.ByPublishDate.Reverse }}
<div class="summary">{{ if .Params.date }}{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }}{{ end }}
- <h3 class="title is-3 latest-post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
+ <h3 class="title is-3 latest-post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h3>
<div class="markdown">
{{ .Summary }}
{{ if .Truncated }}
@@ -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 }}