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:
authorKellen <root@goodroot.ca>2020-07-30 07:29:34 +0300
committerGitHub <noreply@github.com>2020-07-30 07:29:34 +0300
commit927fce272ef6449c29760495fab34855fe0bc4cb (patch)
tree045bd9421b0cb719b4d7f3d91b9fecd04694bb4b
parenta7352c4e715e9ea148893c2d6e5a77bc86007012 (diff)
parent64de234b78e60e3faf92d6cc9c9c368a2245c184 (diff)
Merge pull request #15 from joseph-lozano/fix-tags-and-categories
Fix tags and categories
-rw-r--r--layouts/_default/list.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 0f14ca7..0ee6442 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -8,8 +8,8 @@
{{ .Content }}
<ul>
- {{ $pages := .Site.RegularPages }}
- {{ if .IsHome }}{{ $pages := .Site.RegularPages }}{{ end }}
+ {{ $pages := .Pages }}
+ {{ if .IsHome }}{{ $pages = .Site.RegularPages }}{{ end }}
{{ range (where $pages "Section" "!=" "") }}
<li>
<span class="date">{{ .Date.Format "2006/01/02" }}</span>