From 09a8e1b4a4c39e639ebe2581a948f0e88224020c Mon Sep 17 00:00:00 2001
From: weru <fromweru@gmail.com>
Date: Tue, 01 Feb 2022 01:15:53 +0000
Subject: [PATCH] update

---
 exampleSite/content/docs/clarity/blogging.md            |    1 +
 exampleSite/content/docs/clarity/syntax-highlighting.md |    1 +
 exampleSite/go.mod                                      |    2 +-
 exampleSite/content/docs/clarity/theme-overrides.md     |    1 +
 layouts/partials/pager.html                             |    4 ++--
 exampleSite/content/docs/compose/customize.md           |    2 +-
 exampleSite/go.sum                                      |    2 ++
 7 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/exampleSite/content/docs/clarity/blogging.md b/exampleSite/content/docs/clarity/blogging.md
index a6c21aa..0919002 100644
--- a/exampleSite/content/docs/clarity/blogging.md
+++ b/exampleSite/content/docs/clarity/blogging.md
@@ -1,5 +1,6 @@
 +++
 title="Blogging"
+weight=16
 +++
 
 ### Blog directory
diff --git a/exampleSite/content/docs/clarity/syntax-highlighting.md b/exampleSite/content/docs/clarity/syntax-highlighting.md
index 36947cd..e951415 100644
--- a/exampleSite/content/docs/clarity/syntax-highlighting.md
+++ b/exampleSite/content/docs/clarity/syntax-highlighting.md
@@ -1,5 +1,6 @@
 +++
 title = "Syntax Highlighting"
+weight=17
 +++
 
 ### Code
diff --git a/exampleSite/content/docs/clarity/theme-overrides.md b/exampleSite/content/docs/clarity/theme-overrides.md
index 28c2592..abcb933 100644
--- a/exampleSite/content/docs/clarity/theme-overrides.md
+++ b/exampleSite/content/docs/clarity/theme-overrides.md
@@ -1,5 +1,6 @@
 +++
 title = "Theme Overrides"
+weight=18
 +++
 
 ### Custom CSS and JS
diff --git a/exampleSite/content/docs/compose/customize.md b/exampleSite/content/docs/compose/customize.md
index be7496c..be85383 100644
--- a/exampleSite/content/docs/compose/customize.md
+++ b/exampleSite/content/docs/compose/customize.md
@@ -1,7 +1,7 @@
 +++
 description = "basic configuration"
 title = "Customize layouts & components"
-
+weight = 10
 +++
 ### Shortcodes modifiers
 
diff --git a/exampleSite/go.mod b/exampleSite/go.mod
index a717dc6..a441645 100644
--- a/exampleSite/go.mod
+++ b/exampleSite/go.mod
@@ -2,4 +2,4 @@
 
 go 1.15
 
-require github.com/onweru/compose v0.0.0-20220201002401-8fc05ebec231 // indirect
+require github.com/onweru/compose v0.0.0-20220201002706-19dcf4f70f4a // indirect
diff --git a/exampleSite/go.sum b/exampleSite/go.sum
index ece83bb..d9ac12f 100644
--- a/exampleSite/go.sum
+++ b/exampleSite/go.sum
@@ -200,3 +200,5 @@
 github.com/onweru/compose v0.0.0-20220131233504-ff693a0f9e9d/go.mod h1:tf1kQIBUcwJ/3mRFU5eiMrMvsDScVTK2IEFsZE3hZOc=
 github.com/onweru/compose v0.0.0-20220201002401-8fc05ebec231 h1:wNtaIQ7jJPCOi/KU4CvD89R8dhoXfga2rpJaZ90a7Kk=
 github.com/onweru/compose v0.0.0-20220201002401-8fc05ebec231/go.mod h1:tf1kQIBUcwJ/3mRFU5eiMrMvsDScVTK2IEFsZE3hZOc=
+github.com/onweru/compose v0.0.0-20220201002706-19dcf4f70f4a h1:G4nU+9JMPiVjuCUONovpvWYeFYd2usmxU6gjMbcJJMc=
+github.com/onweru/compose v0.0.0-20220201002706-19dcf4f70f4a/go.mod h1:tf1kQIBUcwJ/3mRFU5eiMrMvsDScVTK2IEFsZE3hZOc=
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>

--
Gitblit v1.10.0