diff options
author | Bing-Sheng Chen <gundamew@gmail.com> | 2019-08-02 06:31:43 +0300 |
---|---|---|
committer | Bing-Sheng Chen <gundamew@gmail.com> | 2019-08-02 06:31:43 +0300 |
commit | 31eaeb31bf3df524639b9ebfc0eb6f891f55ba84 (patch) | |
tree | 65b256baab00aedaa870ba5ce6e4acc00680c996 | |
parent | 878be7b931f8b8587946bfd6cb504cf436fa4d8a (diff) |
refactor(index): Remove unnecessary variablev1.6.1
Remove unnecessary variable `.Data` from index template.
-rw-r--r-- | layouts/index.html | 2 |
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> |