From 4a2676396cb0a991dae12018be96462b3eec27f5 Mon Sep 17 00:00:00 2001 From: olOwOlo <26087907+olOwOlo@users.noreply.github.com> Date: Thu, 31 Aug 2017 00:18:22 +0800 Subject: fix: always use relURL --- layouts/404.html | 2 +- layouts/_default/terms.html | 4 ++-- layouts/partials/head.html | 23 ++++++++++++----------- layouts/partials/header.html | 2 +- layouts/partials/scripts.html | 13 +++++++------ layouts/partials/slideout.html | 2 +- layouts/post/single.html | 4 ++-- layouts/post/summary.html | 2 +- 8 files changed, 27 insertions(+), 25 deletions(-) diff --git a/layouts/404.html b/layouts/404.html index 81a37e9..50e1860 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -4,7 +4,7 @@

/* 404 page not found. */

- +
+{{ $themeVersion := .Site.Params.version }} + {{ if .Site.Params.bootcdn -}} {{ if .Site.Params.fancybox }}{{ end }} - + {{ else -}} - - - {{ if .Site.Params.fancybox }}{{ end }} - + + + {{ if .Site.Params.fancybox }}{{ end }} + {{- end }} {{ if and (and .Site.Params.mathjax (ne .Params.mathjax false)) (or .IsPage .IsHome) -}} diff --git a/layouts/partials/slideout.html b/layouts/partials/slideout.html index 4ec6344..0ebf0c2 100644 --- a/layouts/partials/slideout.html +++ b/layouts/partials/slideout.html @@ -1,6 +1,6 @@
diff --git a/layouts/post/single.html b/layouts/post/single.html index 81c0939..62c317c 100644 --- a/layouts/post/single.html +++ b/layouts/post/single.html @@ -12,7 +12,7 @@ {{ with .Params.categories -}} {{- end }} @@ -37,7 +37,7 @@ {{ with .Params.tags -}} {{- end }} diff --git a/layouts/post/summary.html b/layouts/post/summary.html index 8a4e774..bb55d5f 100644 --- a/layouts/post/summary.html +++ b/layouts/post/summary.html @@ -9,7 +9,7 @@ {{ with .Params.categories -}} {{- end }} -- cgit v1.2.3