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

github.com/goodroot/hugo-classic.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Lozano <joseph@joseph-lozano.com>2020-07-30 06:01:48 +0300
committerJoseph Lozano <joseph@joseph-lozano.com>2020-07-30 06:01:48 +0300
commit64de234b78e60e3faf92d6cc9c9c368a2245c184 (patch)
tree045bd9421b0cb719b4d7f3d91b9fecd04694bb4b
parentd5924ca25bcf05ba91651adcebcba10a7c430971 (diff)
use = instead of := for isHome
-rw-r--r--layouts/_default/list.html2
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>