diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 521e974..03a4d7f 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,8 +1,8 @@ {{ partial "meta.html" . }} - + -{{ $url := replace .Permalink ( printf "%s" .Site.BaseUrl) "" }} +{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }} {{ if eq $url "/" }} {{ .Site.Title }} {{ else }} diff --git a/layouts/partials/head_includes.html b/layouts/partials/head_includes.html index 7fcb102..42a9e8c 100644 --- a/layouts/partials/head_includes.html +++ b/layouts/partials/head_includes.html @@ -1,8 +1,8 @@ <!-- HTTPS --> <script type="text/javascript"> - var baseUrl = '{{ .Site.BaseUrl }}'; - var host = baseUrl.substring(0, baseUrl.length - 1).replace(/\//g, ''); + var baseURL = '{{ .Site.BaseURL }}'; + var host = baseURL.substring(0, baseURL.length - 1).replace(/\//g, ''); if ((host === window.location.host) && (window.location.protocol !== 'https:')) { window.location.protocol = 'https:'; }