mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 19:56:41 +02:00
@@ -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 }}
|
||||
|
@@ -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:';
|
||||
}
|
||||
|
Reference in New Issue
Block a user