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/partials/head.html | 23 ++++++++++++----------- layouts/partials/header.html | 2 +- layouts/partials/scripts.html | 13 +++++++------ layouts/partials/slideout.html | 2 +- 4 files changed, 21 insertions(+), 19 deletions(-) (limited to 'layouts/partials') diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 0310b16..0a93efb 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -43,19 +43,20 @@ {{ end -}} - - - - - - + + + + + + - - + +{{ $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 }} {{/* NOTE: These Hugo Internal Templates can be found starting at https://github.com/spf13/hugo/blob/master/tpl/tplimpl/template_embedded.go#L158 */}} @@ -66,6 +67,6 @@ {{ `` | safeHTML }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index a8a555a..f41fdac 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,5 +1,5 @@
- +