From 85e6de755b8ee3a5639d878aaffbe01b91121bad Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 15 Jan 2020 23:31:05 +0100 Subject: [PATCH] use title from menu data file for page nav links --- CHANGELOG.md | 1 + layouts/partials/.menu-bundle.html.swp | Bin 0 -> 12288 bytes layouts/partials/page-footer.html | 8 ++++---- 3 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 layouts/partials/.menu-bundle.html.swp 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 0000000000000000000000000000000000000000..05efec090fd1f22ae2df99ea959639431c1d7f84 GIT binary patch literal 12288 zcmeI2%W4!s6oxCVVl-ZNuF6ipL`e6TAZX~!LIawJAch3QOQ`hJ%rvR=jNR3fgb+m+ zy7Br5Zd~~Yf)C*%NWhiP;9uQcb4|vjD5v31ch@;p=bW!DFr+t1YfE?eHFuWbI>Xqf z8yB8@+#6;0=NOAOMLK)Ebk&%KT}j%MaoC84`54n-)CP-G_pL|}lxIGdZjQZmgG&P9Iy z-0FY_H4p(JKm>>Y5g-CYfCvx)BJlqb(9IF{9OWG=O1xa$NBZu?E8U0y5g-CYfCvx) zB0vO)01+SpM1Tkofq#&Is4({WIAeFlkUakXZ-4(EoM!AD^cK?4185Pt30;DIonq`O z^Z|Mgy@DP?x1qDpk8#F6L)%abT7wQwGWG%*g?^r3>^t-g`U1Uyn$RO?8CrrkGzPsy zZcV5PN$4T83YnajA-aeF5g-CYfCvx)B0vQG3W2>nE~5(H-)Fv;sxs@mGmgvmR9McQ z%v;B3-t2`|Ew`EqUxjif`{uJ6D(Ub_7-;S!GSCj6OwtYR1Zf=02(MF<#iP3t#6kyk z_m+gOwNIm4s4>J5ewlIFB;A!mSk0sKwq}9n7kEWhMXEHf;=@$QU6T$RyZaXy?1<*> zdr4D7o%*c}6}yqxlHD0({>GgLN+ijGQ&n=u>GU=1Oz5ukhK2Aw(dldBn)^|)txplX zhA(nwBGFo32k>~;bOWHMp}8w}w2UL6kV@VvpK?1Nd{WoL1eP$F5rGa{(&U{jkoH4Y zQ8uVAcs-WY1t%Y{FN6zI9;_e$uUIP6+K$`hlSOlw9oydXp(n$j5n(VtY1J(0tO;hf zusLNv1?e3XMw|0_UK71$5B4%OJFNFeCl({Bx5=8VBe* PSfK^fhG*t(crL#IM|<+D literal 0 HcmV?d00001 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 }}