From: spf13 Date: Wed, 20 Aug 2014 01:28:37 +0000 (-0400) Subject: Changing the docs template partials to be able to be used to render a section X-Git-Tag: v0.12~53 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=864f91d90e3f7f46e46ced9cc0ba58fdb76c2c39;p=brevno-suite%2Fhugo Changing the docs template partials to be able to be used to render a section --- diff --git a/docs/layouts/partials/footer.html b/docs/layouts/partials/footer.html index 961638d8..e6a4fc8c 100644 --- a/docs/layouts/partials/footer.html +++ b/docs/layouts/partials/footer.html @@ -3,11 +3,13 @@
+ {{ if .IsPage }} {{ with .GetParam "next" }} {{ end }} + {{ end }}
diff --git a/docs/layouts/partials/header.html b/docs/layouts/partials/header.html index f6fc360c..f47ba2b1 100644 --- a/docs/layouts/partials/header.html +++ b/docs/layouts/partials/header.html @@ -48,7 +48,7 @@ -{{ template "partials/menu.html" . }} +{{ partial "menu.html" . }}
@@ -68,11 +68,13 @@
+ {{ if .IsPage }} {{ with .GetParam "prev" }} {{ end }} + {{ end }}
diff --git a/docs/layouts/partials/menu.html b/docs/layouts/partials/menu.html index cac8233d..8e5e4004 100644 --- a/docs/layouts/partials/menu.html +++ b/docs/layouts/partials/menu.html @@ -30,7 +30,9 @@ {{end}}
  • Issues & Help
  • - {{ $File := .File }} {{with .File.FileName }}
  • Refine this Page
  • {{end}} + {{ if .IsPage }} + {{ $File := .File }} {{with $File.FileName }}
  • Refine this Page
  • {{end}} + {{ end }}