{{ partial "utils/title" . }}
{{ partial "utils/content" . }} diff --git a/docs/themes/hugo-geekdoc/layouts/_default/single.html b/docs/themes/hugo-geekdoc/layouts/_default/single.html index 94172f65..adcc333a 100644 --- a/docs/themes/hugo-geekdoc/layouts/_default/single.html +++ b/docs/themes/hugo-geekdoc/layouts/_default/single.html @@ -4,8 +4,10 @@{{ partial "utils/title" . }}
+ {{ partial "page-metadata" . }} {{ partial "utils/content" . }}- diff --git a/docs/themes/hugo-geekdoc/layouts/partials/menu-nextprev.html b/docs/themes/hugo-geekdoc/layouts/partials/menu-bundle-np.html similarity index 57% rename from docs/themes/hugo-geekdoc/layouts/partials/menu-nextprev.html rename to docs/themes/hugo-geekdoc/layouts/partials/menu-bundle-np.html index 6126f951..593b649c 100644 --- a/docs/themes/hugo-geekdoc/layouts/partials/menu-nextprev.html +++ b/docs/themes/hugo-geekdoc/layouts/partials/menu-bundle-np.html @@ -6,9 +6,9 @@ {{ $current.Scratch.Set "nextPage" false }} {{ $current.Scratch.Set "prevPage" false }} -{{ template "menu_nextprev" dict "sect" $.Site.Data.menu.main.main "current" $current "site" $site }} +{{ template "menu-bundle-np" dict "sect" $.Site.Data.menu.main.main "current" $current "site" $site }} -{{ define "menu_nextprev" }} +{{ define "menu-bundle-np" }} {{ $current := .current }} {{ $site := .site }} @@ -44,35 +44,32 @@ {{ $sub := default false .sub }} {{ if $sub }} - {{ template "menu_nextprev" dict "sect" $sub "current" ($current.Scratch.Get "current") "site" ($current.Scratch.Get "site") }} + {{ template "menu-bundle-np" dict "sect" $sub "current" ($current.Scratch.Get "current") "site" ($current.Scratch.Get "site") }} {{ end }} {{ end }} {{ end }} -{{ $showPrevNext := (and (default true .Site.Params.geekdocNextPrev) .Site.Params.geekdocMenuBundle) }} -{{ if $showPrevNext }} - - {{ with ($current.Scratch.Get "prevPage") }} - - gdoc_arrow_left_alt - {{ .name }} - - {{ end }} - - - {{ with ($current.Scratch.Get "nextPage") }} - - {{ .name }} - gdoc_arrow_right_alt - - {{ end }} - -{{ end }} + + {{ with ($current.Scratch.Get "prevPage") }} + + gdoc_arrow_left_alt + {{ .name }} + + {{ end }} + + + {{ with ($current.Scratch.Get "nextPage") }} + + {{ .name }} + gdoc_arrow_right_alt + + {{ end }} + diff --git a/docs/themes/hugo-geekdoc/layouts/partials/menu-bundle.html b/docs/themes/hugo-geekdoc/layouts/partials/menu-bundle.html index bb323875..9c2028fe 100644 --- a/docs/themes/hugo-geekdoc/layouts/partials/menu-bundle.html +++ b/docs/themes/hugo-geekdoc/layouts/partials/menu-bundle.html @@ -52,7 +52,7 @@ {{ end }} {{ $name }} @@ -68,7 +71,7 @@ -