diff options
author | misumi <mismith0227@users.noreply.github.com> | 2020-03-04 02:22:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-04 02:22:28 +0300 |
commit | 364f2ea780a64f53edbca1dcd3d64e0c3ab09d32 (patch) | |
tree | 929d552a740a20ec4c521771e2929abf0c4ee779 /layouts | |
parent | c5d506cb296433a29cd1770304ab2b7b274b1b83 (diff) | |
parent | 6537417b19aef39b52d68df02f6171570e51bdf2 (diff) |
Merge pull request #137 from seokbeomKim/develop
Fix a bug on listing posts in tag, categories
Diffstat (limited to 'layouts')
-rwxr-xr-x | layouts/_default/list.html | 9 |
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" . }} |