summaryrefslogtreecommitdiffstats
path: root/layouts
diff options
context:
space:
mode:
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" . }}