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

github.com/gundamew/hugo-bingo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBing-Sheng Chen <gundamew@gmail.com>2019-08-02 06:31:43 +0300
committerBing-Sheng Chen <gundamew@gmail.com>2019-08-02 06:31:43 +0300
commit31eaeb31bf3df524639b9ebfc0eb6f891f55ba84 (patch)
tree65b256baab00aedaa870ba5ce6e4acc00680c996
parent878be7b931f8b8587946bfd6cb504cf436fa4d8a (diff)
refactor(index): Remove unnecessary variablev1.6.1
Remove unnecessary variable `.Data` from index template.
-rw-r--r--layouts/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 64c798e..db217fa 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -20,7 +20,7 @@
<div id="recent-posts">
<h2>{{ i18n "recent_posts" }}</h2>
<ul>
- {{ range first 5 .Data.Pages.ByPublishDate.Reverse }}
+ {{ range first 5 .Pages.ByPublishDate.Reverse }}
<li>
<span>{{- partial "date.html" . -}}</span>
<a href="{{ .Permalink }}">{{ .Title }}</a>