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.html14
1 files changed, 7 insertions, 7 deletions
diff --git a/layouts/partials/home/blog.html b/layouts/partials/home/blog.html
index b26801c..67719bc 100644
--- a/layouts/partials/home/blog.html
+++ b/layouts/partials/home/blog.html
@@ -1,27 +1,27 @@
-{{ with .Site.GetPage "section" "blog" }}
+{{ with .Site.GetPage "/blog" }}
<div class="section" id="{{ .Title | urlize }}">
<!-- Begin Blog container -->
<div class="container">
- {{ if .Site.Params.showLatest }}
+ {{ if .Site.Params.home.showLatest | default true }}
<h2 class="title is-2 has-text-centered">{{ i18n "index_blog_latestPosts" . }}</h2>
{{ range first 1 .Pages.ByPublishDate.Reverse }}
- <div class="summary">{{ .Date.Format (.Site.Params.dateForm | default "Jan 02, 2006") }}
- <h3 class="title is-3 latest-post-title"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
+ <div class="summary">{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }}
+ <h3 class="title is-3 latest-post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
<div class="markdown">
{{ .Summary }}
{{ if .Truncated }}
- <a href="{{ .RelPermalink }}">{{ i18n "index_blog_readMore" . }}</a>
+ <a href="{{ .Permalink }}">{{ i18n "index_blog_readMore" . }}</a>
{{ end }}
</div>
</div>
{{ end }}
{{ end }}
- {{ if .Site.Params.showAllPosts }}
+ {{ if .Site.Params.home.showAllPosts }}
<h2 class="title is-2 has-text-centered top-pad">{{ i18n "index_blog_allPosts" . }}</h2>
{{ partialCached "blog/li.html" . }}
{{ else }}
<div class="container has-text-centered top-pad">
- <a href="{{ .RelPermalink }}">{{ i18n "index_blog_allPosts" . }}</a>
+ <a href="{{ .Permalink }}">{{ i18n "index_blog_allPosts" . }}</a>
</div>
{{ end }}
</div>