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

github.com/onweru/compose.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/pager.html')
-rw-r--r--layouts/partials/pager.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/pager.html b/layouts/partials/pager.html
index 1bb5e8c..0fe75b6 100644
--- a/layouts/partials/pager.html
+++ b/layouts/partials/pager.html
@@ -1,7 +1,7 @@
<div class="pager{{ if .Next }}{{ else }} pager_lean{{ end }}">
{{- $searchURL := "/search/" }}
{{ with .NextInSection }}
- {{ if ne .RelPermalink $searchURL }}
+ {{ if and (ne .RelPermalink $searchURL) (.InSection .) }}
<div class="pager_item prev">
<a href="{{ .Permalink }}" class="pager_link button" title="{{ .Title }}" rel="prev">
<span class="pager_label">{{ .Title }}</span>
@@ -11,7 +11,7 @@
{{ end }}
{{ with .PrevInSection }}
- {{ if ne .RelPermalink $searchURL }}
+ {{ if and (ne .RelPermalink $searchURL) (.InSection .) }}
<div class="pager_item next">
<a href="{{ .Permalink }}" class="pager_link button" title="{{ .Title }}" rel="next">
<span class="pager_label">{{ .Title }}</span>