Skip to content

Commit

Permalink
Use .BaseURL instead of .BaseUrl
Browse files Browse the repository at this point in the history
Closes #2
  • Loading branch information
nishanths committed Nov 9, 2015
1 parent b28392d commit 9949132
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<head>
{{ partial "meta.html" . }}
<base href="{{ .Site.BaseUrl }}">
<base href="{{ .Site.BaseURL }}">
<title>
{{ $url := replace .Permalink ( printf "%s" .Site.BaseUrl) "" }}
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
{{ if eq $url "/" }}
{{ .Site.Title }}
{{ else }}
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/head_includes.html
Original file line number Diff line number Diff line change
@@ -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:';
}
Expand Down

0 comments on commit 9949132

Please sign in to comment.