7 lines
192 B
JavaScript
7 lines
192 B
JavaScript
|
{{ $url := urls.Parse .Site.BaseURL }}
|
||
|
{{ $host := $url.Host }}
|
||
|
|
||
|
if (window.location.host == "{{ $host }}" && window.location.protocol != "https:") {
|
||
|
window.location.protocol = "https";
|
||
|
}
|