diff options
author | Joseph Lozano <joseph@joseph-lozano.com> | 2020-07-30 06:01:48 +0300 |
---|---|---|
committer | Joseph Lozano <joseph@joseph-lozano.com> | 2020-07-30 06:01:48 +0300 |
commit | 64de234b78e60e3faf92d6cc9c9c368a2245c184 (patch) | |
tree | 045bd9421b0cb719b4d7f3d91b9fecd04694bb4b | |
parent | d5924ca25bcf05ba91651adcebcba10a7c430971 (diff) |
use = instead of := for isHome
-rw-r--r-- | layouts/_default/list.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 0fed9e9..0ee6442 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -9,7 +9,7 @@ <ul> {{ $pages := .Pages }} - {{ if .IsHome }}{{ $pages := .Site.RegularPages }}{{ end }} + {{ if .IsHome }}{{ $pages = .Site.RegularPages }}{{ end }} {{ range (where $pages "Section" "!=" "") }} <li> <span class="date">{{ .Date.Format "2006/01/02" }}</span> |