diff --git a/layouts/docs/second.html b/layouts/docs/second.html
index fd081ac79..b921cd500 100644
--- a/layouts/docs/second.html
+++ b/layouts/docs/second.html
@@ -156,13 +156,6 @@
{{ end }}
-<<<<<<< HEAD
-<<<<<<< HEAD
-=======
-=======
-
-
->>>>>>> 701c81afc (尝试修复上下页跳转混乱和 hover 文档错误)
{{ if .IsPage }}
@@ -172,10 +165,6 @@
{{ end }}
-<<<<<<< HEAD
->>>>>>> b5c946198 (fix: try to fix page navigation)
-=======
->>>>>>> 701c81afc (尝试修复上下页跳转混乱和 hover 文档错误)
{{ if .IsPage }}
diff --git a/layouts/docs/single.html b/layouts/docs/single.html
index 13125054e..aaf63dead 100644
--- a/layouts/docs/single.html
+++ b/layouts/docs/single.html
@@ -156,17 +156,6 @@
{{ i18n "Msg-Thank" }}
-<<<<<<< HEAD
-<<<<<<< HEAD
-=======
-
->>>>>>> b5c946198 (fix: try to fix page navigation)
- {{ if .IsPage }}
-=======
->>>>>>> 701c81afc (尝试修复上下页跳转混乱和 hover 文档错误)
-
-
-
{{ if .IsPage }}
diff --git a/layouts/partials/page_navigate.html b/layouts/partials/page_navigate.html
index 74b6cc48b..2eff506bd 100644
--- a/layouts/partials/page_navigate.html
+++ b/layouts/partials/page_navigate.html
@@ -1,4 +1,3 @@
-<<<<<<< HEAD
{{ $current := .context }}
@@ -19,240 +18,56 @@
{{ if .prev }}
{{ $first := index $p_section 0}}
-
-{{ if $current.InSection $first.CurrentSection }}
-=======
-
-{{ $current := .context }}
-
-
-
-{{ if $current.IsPage}}
-{{ $g_parent := $current.Parent.Parent }}
-
-
-
-
-{{ $p_section := $g_parent.Pages.ByWeight }}
-{{ $length := len $p_section }}
-
-
-{{ if .prev }}
-{{ $first := index $p_section 0}}
-
-
{{ if $current.InSection $first.CurrentSection }}
-
-
-
->>>>>>> 701c81afc (尝试修复上下页跳转混乱和 hover 文档错误)
{{ partial "page_navigate" (dict "context" $g_parent "prev" true)}}
{{else}}
-<<<<<<< HEAD
-=======
-
->>>>>>> 701c81afc (尝试修复上下页跳转混乱和 hover 文档错误)
{{ $curIndex := 0 }}
{{ range $i, $p_sec := $p_section}}
-<<<<<<< HEAD
-=======
-
->>>>>>> 701c81afc (尝试修复上下页跳转混乱和 hover 文档错误)
{{ if eq $p_sec $current.CurrentSection}}
{{ $curIndex = $i }}
{{ end }}
{{ end }}
-<<<<<<< HEAD
-=======
-
->>>>>>> 701c81afc (尝试修复上下页跳转混乱和 hover 文档错误)
{{ $prevPage := index $p_section (sub $curIndex 1) }}
{{ partial "findLastInSection" $prevPage}}
{{ end }}
-<<<<<<< HEAD
-=======
-
->>>>>>> 701c81afc (尝试修复上下页跳转混乱和 hover 文档错误)
{{ else }}
-<<<<<<< HEAD
{{ $last := index $p_section (sub $length 1)}}
{{ if $current.InSection $last.CurrentSection }}
-=======
-{{ $last := index $p_section (sub $length 1)}}
-
-
-
-{{ if $current.InSection $last.CurrentSection }}
-
->>>>>>> 701c81afc (尝试修复上下页跳转混乱和 hover 文档错误)
{{ partial "page_navigate" (dict "context" $g_parent "prev" false)}}
{{ else }}
-<<<<<<< HEAD
{{ $curIndex := 0 }}
{{ range $i, $p_sec := $p_section}}
-=======
-
-
-{{ $curIndex := 0 }}
-{{ range $i, $p_sec := $p_section}}
-
->>>>>>> 701c81afc (尝试修复上下页跳转混乱和 hover 文档错误)
{{ if eq $p_sec $current.CurrentSection}}
{{ $curIndex = $i }}
{{ end }}
{{ end }}
-<<<<<<< HEAD
-=======
-
->>>>>>> 701c81afc (尝试修复上下页跳转混乱和 hover 文档错误)
{{ $nextPage := index $p_section (add $curIndex 1) }}
{{ partial "findFirstInSection" $nextPage}}
-<<<<<<< HEAD
{{ end }}
{{ end }}
-=======
-{{ end }}
-
-{{ end }}
-
-
-
-
-{{ else }}
-{{ $g_parent := $current.Parent}}
-
-{{ $p_section := $g_parent.Pages.ByWeight }}
-{{ $length := len $p_section }}
-
-
-{{ if .prev}}
-{{ $first := index $p_section 0}}
-
-
-
-{{ if $current.InSection $first.CurrentSection }}
-
-{{ partial "page_navigate" (dict "context" $g_parent "prev" true)}}
-
-
-{{ else }}
-{{ $curIndex := 0 }}
-{{ range $i, $p_sec := $p_section}}
-
-{{ if eq $p_sec $current.CurrentSection}}
-{{ $curIndex = $i }}
-{{ end }}
-{{ end }}
-
-
-{{ $prevPage := index $p_section (sub $curIndex 1) }}
-{{ partial "findLastInSection" $prevPage}}
-
-{{ end }}
-
-
-
-{{ else }}
-
-{{ $last := index $p_section (sub $length 1)}}
-
-
-
-{{ if $current.InSection $last.CurrentSection }}
-
-
-{{ partial "page_navigate" (dict "context" $g_parent "prev" false)}}
-
-
-{{ else }}
-
-
-{{ $curIndex := 0 }}
-{{ range $i, $p_sec := $p_section}}
-
-{{ if eq $p_sec $current.CurrentSection}}
-{{ $curIndex = $i }}
-{{ end }}
-{{ end }}
-
-
-{{ $nextPage := index $p_section (add $curIndex 1) }}
-{{ partial "findFirstInSection" $nextPage}}
-
-{{ end }}
-
-{{ end }}
-
-{{ end }}
->>>>>>> 701c81afc (尝试修复上下页跳转混乱和 hover 文档错误)
diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html
index 8fefd36e5..0468f7034 100644
--- a/layouts/partials/pagination.html
+++ b/layouts/partials/pagination.html
@@ -1,8 +1,3 @@
-<<<<<<< HEAD
-=======
-
-
->>>>>>> 701c81afc (尝试修复上下页跳转混乱和 hover 文档错误)
{{ $current := .}}
@@ -13,26 +8,11 @@
{{ $curIndex := 0 }}
{{ range $i, $p_sec := $p}}
-<<<<<<< HEAD
-=======
-
-
-
->>>>>>> 701c81afc (尝试修复上下页跳转混乱和 hover 文档错误)
{{ if eq $p_sec $current}}
{{ $curIndex = $i }}
{{ end }}
{{ end }}
-<<<<<<< HEAD
-=======
-
->>>>>>> 701c81afc (尝试修复上下页跳转混乱和 hover 文档错误)
{{ if gt $curIndex 0}}