From ae7cf41ca98d974a33bebc766f391460a61c3bc8 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Mon, 3 Feb 2020 17:17:14 +0900 Subject: [PATCH] Fix warnings (#155) --- layouts/404.html | 2 +- layouts/code/baseof.html | 2 +- layouts/community/baseof.html | 2 +- layouts/docs/baseof.html | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/layouts/404.html b/layouts/404.html index 1e837df..1783fb3 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,5 +1,5 @@ {{ partial "header" . }} -{{ $currentURL := .URL }} +{{ $currentURL := .RelPermalink }}
diff --git a/layouts/code/baseof.html b/layouts/code/baseof.html index 0b36380..957e5a9 100644 --- a/layouts/code/baseof.html +++ b/layouts/code/baseof.html @@ -1,5 +1,5 @@ {{ partial "header" . }} -{{ $currentURL := .URL }} +{{ $currentURL := .RelPermalink }}
diff --git a/layouts/community/baseof.html b/layouts/community/baseof.html index 0b36380..957e5a9 100644 --- a/layouts/community/baseof.html +++ b/layouts/community/baseof.html @@ -1,5 +1,5 @@ {{ partial "header" . }} -{{ $currentURL := .URL }} +{{ $currentURL := .RelPermalink }}
diff --git a/layouts/docs/baseof.html b/layouts/docs/baseof.html index 34b092c..b6131b1 100644 --- a/layouts/docs/baseof.html +++ b/layouts/docs/baseof.html @@ -1,5 +1,5 @@ {{ partial "header" . }} -{{ $currentURL := .URL }} +{{ $currentURL := .RelPermalink }}
@@ -113,7 +113,7 @@ {{ .Scratch.Set "CurrentWeight" .Weight }} {{ range first 1 (where (.Scratch.Get "Docs") ".Weight" ">" (.Scratch.Get "CurrentWeight")) }} -
Next up: {{ .Title }}
+
Next up: {{ .Title }}
{{ end }}