diff --git a/layouts/_default/section.html b/layouts/_default/section.html index 09f90bb..900f4d7 100644 --- a/layouts/_default/section.html +++ b/layouts/_default/section.html @@ -1,7 +1,7 @@ {{ define "title" }}{{ T "archive" }} - {{ .Site.Title }}{{ end }} {{ define "content"}} -{{- $paginator := .Paginate (where .Data.Pages.ByDate.Reverse "Type" "post") .Site.Params.archivePaginate }} +{{- $paginator := .Paginate .Data.Pages.ByDate.Reverse .Site.Params.archivePaginate }}
{{- if not $paginator.HasPrev }}
@@ -47,4 +47,4 @@ {{- end }} -{{ end }} \ No newline at end of file +{{ end }} diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html index c20afb7..d0c8d43 100644 --- a/layouts/_default/taxonomy.html +++ b/layouts/_default/taxonomy.html @@ -1,7 +1,7 @@ {{ define "title" }}{{ .Title }} ยท {{ .Site.Title }}{{ end }} {{ define "content"}} -{{ $paginator := .Paginate (where .Data.Pages.ByDate.Reverse "Type" "post") .Site.Params.archivePaginate }} +{{ $paginator := .Paginate .Data.Pages.ByDate.Reverse .Site.Params.archivePaginate }}
{{ if not $paginator.HasPrev }} {{ if eq .Data.Plural "tags" }} @@ -43,4 +43,4 @@ {{- end }} -{{ end }} \ No newline at end of file +{{ end }}