summaryrefslogtreecommitdiffstats
path: root/layouts
diff options
context:
space:
mode:
authoramzrk22020-04-15 16:19:19 +0800
committeramzrk22020-04-15 16:19:19 +0800
commitb4e6be8688ec5b41e27c3d0977a5831315740f32 (patch)
treed4e514c3de0a09cac11ca99152446d3001e5554b /layouts
parentedb8d453c866afcfc841e744535015f6d139a7cd (diff)
downloadhugo-theme-fuji-b4e6be8688ec5b41e27c3d0977a5831315740f32.tar.gz
hugo-theme-fuji-b4e6be8688ec5b41e27c3d0977a5831315740f32.tar.bz2
hugo-theme-fuji-b4e6be8688ec5b41e27c3d0977a5831315740f32.zip
Remove taxonomyTerm using disableKinds
Diffstat (limited to 'layouts')
-rw-r--r--layouts/index.html2
-rw-r--r--layouts/tags/list.html4
2 files changed, 1 insertions, 5 deletions
diff --git a/layouts/index.html b/layouts/index.html
index ddc93f1..ef083bc 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -4,7 +4,7 @@
<!-- list -->
<div class="col-md-9 col-12 float-left" id="content">
<!-- homepage range in posts -->
- {{ $paginator := .Paginate (where .Site.RegularPages "Type" "post") }}
+ {{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
{{ range $paginator.Pages }}
<div id="post">
<h2 id="post-title">
diff --git a/layouts/tags/list.html b/layouts/tags/list.html
index 0b58a6d..c58d1c3 100644
--- a/layouts/tags/list.html
+++ b/layouts/tags/list.html
@@ -4,9 +4,6 @@
<!-- list -->
<div class="col-md-9 col-12 float-left" id="content">
<!-- tags page range in posts -->
- {{ if eq .RelPermalink "/tags/" }}
- <span id="not-found">404 NOT FOUND</span>
- {{ else }}
<div id="page-tag">
<span>拥有标签 {{ .Title }} 的文章:</span>
</div>
@@ -26,7 +23,6 @@
</div>
</div>
{{ end }}
- {{ end }}
{{ if gt .Paginator.TotalPages 1 }}
<div id="pagination">
{{ template "_internal/pagination.html" . }}