From 994913289e22a469f5988d6556b381ef4138eda5 Mon Sep 17 00:00:00 2001 From: Nishanth Shanmugham Date: Sun, 8 Nov 2015 22:48:12 -0600 Subject: [PATCH] Use .BaseURL instead of .BaseUrl Closes #2 --- layouts/partials/head.html | 4 ++-- layouts/partials/head_includes.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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:'; }