diff --git a/CHANGELOG.md b/CHANGELOG.md
index ebd7683..a76ff79 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,2 +1,3 @@
- BUGFIX
- fix wrong class name for page navigation button
+ - use title from menu data file for page nav links
diff --git a/layouts/partials/.menu-bundle.html.swp b/layouts/partials/.menu-bundle.html.swp
new file mode 100644
index 0000000..05efec0
Binary files /dev/null and b/layouts/partials/.menu-bundle.html.swp differ
diff --git a/layouts/partials/page-footer.html b/layouts/partials/page-footer.html
index 6a19dba..0cece83 100644
--- a/layouts/partials/page-footer.html
+++ b/layouts/partials/page-footer.html
@@ -23,7 +23,7 @@
{{ $current := $current.Scratch.Get "current" }}
{{ if $current.Scratch.Get "getNext" }}
- {{ $current.Scratch.Set "nextPage" $this }}
+ {{ $current.Scratch.Set "nextPage" (dict "name" .name "this" $this) }}
{{ $current.Scratch.Set "getNext" false }}
{{ end }}
@@ -32,7 +32,7 @@
{{ $current.Scratch.Set "getNext" true }}
{{ end }}
- {{ $current.Scratch.Set "prev" $this }}
+ {{ $current.Scratch.Set "prev" (dict "name" .name "this" $this) }}
{{ end }}
{{ $sub := default false .sub }}
@@ -48,12 +48,12 @@
{{ if $showPrevNext }}
{{ with ($current.Scratch.Get "prevPage") }}
- {{ .Name }}
+ {{ .name }}
{{ end }}
{{ with ($current.Scratch.Get "nextPage") }}
- {{ .Name }}
+ {{ .name }}
{{ end }}
{{ end }}