From 864f91d90e3f7f46e46ced9cc0ba58fdb76c2c39 Mon Sep 17 00:00:00 2001 From: spf13 Date: Tue, 19 Aug 2014 21:28:37 -0400 Subject: [PATCH] Changing the docs template partials to be able to be used to render a section --- docs/layouts/partials/footer.html | 2 ++ docs/layouts/partials/header.html | 4 +++- docs/layouts/partials/menu.html | 4 +++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/layouts/partials/footer.html b/docs/layouts/partials/footer.html index 961638d8c..e6a4fc8cf 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 f6fc360ca..f47ba2b18 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 cac8233d0..8e5e4004d 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 }}