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

github.com/xiaoheiAh/hugo-theme-pure.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/_default/list.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 794da11..767cbd3 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -3,11 +3,11 @@
<article class="content article article-archives article-type-list" itemscope="">
<header class="article-header">
<h1 itemprop="title">{{ .Title }}</h1>
- <p class="text-muted">{{- T "total_article" (len .RegularPages) }}</p>
+ <p class="text-muted">{{- T "total_article" (len .Site.RegularPages) }}</p>
</header>
<div class="article-body">
{{- $currentYearSection := 0}}
- {{- range $idx,$page := .RegularPages}}
+ {{- range $idx,$page := .Site.RegularPages}}
{{- $thisYear := $page.Date.Format ("2006") }}
{{- if eq $currentYearSection 0 }}
{{- $currentYearSection = $thisYear}}
@@ -37,4 +37,4 @@
</div>
</article>
</main>
-{{- end }} \ No newline at end of file
+{{- end }}