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

github.com/mismith0227/hugo_theme_pickles.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormisumi <mismith0227@users.noreply.github.com>2020-03-04 02:22:28 +0300
committerGitHub <noreply@github.com>2020-03-04 02:22:28 +0300
commit364f2ea780a64f53edbca1dcd3d64e0c3ab09d32 (patch)
tree929d552a740a20ec4c521771e2929abf0c4ee779 /layouts
parentc5d506cb296433a29cd1770304ab2b7b274b1b83 (diff)
parent6537417b19aef39b52d68df02f6171570e51bdf2 (diff)
Merge pull request #137 from seokbeomKim/develop
Fix a bug on listing posts in tag, categories
Diffstat (limited to 'layouts')
-rwxr-xr-xlayouts/_default/list.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 3d724ce..eff9d26 100755
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,10 +1,19 @@
{{ partial "header.html" . }}
<h2 class="c-title p-tag-title">{{ .Title }}</h2>
+{{ if isset .Site.Taxonomies "tags" }}
+{{ $mytag := .Title }}
+{{ range $index, $page := (.Paginate (where .Data.Pages "Type" "posts")).Pages }}
+{{ if ne $index 0 }}
+{{ end }}
+{{ .Render "li" }}
+{{ end }}
+{{ else }}
{{ range $index, $page := (.Paginate (where .Site.RegularPages "Type" "posts")).Pages }}
{{ if ne $index 0 }}
{{ end }}
{{ .Render "li" }}
{{ end }}
+{{ end }}
{{ partial "pagination.html" .Paginator }}
{{ partial "siteinfo.html" . }}
{{ partial "footer.html" . }}