mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 11:46:41 +02:00
@@ -1,8 +1,8 @@
|
|||||||
<head>
|
<head>
|
||||||
{{ partial "meta.html" . }}
|
{{ partial "meta.html" . }}
|
||||||
<base href="{{ .Site.BaseUrl }}">
|
<base href="{{ .Site.BaseURL }}">
|
||||||
<title>
|
<title>
|
||||||
{{ $url := replace .Permalink ( printf "%s" .Site.BaseUrl) "" }}
|
{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
|
||||||
{{ if eq $url "/" }}
|
{{ if eq $url "/" }}
|
||||||
{{ .Site.Title }}
|
{{ .Site.Title }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
<!-- HTTPS -->
|
<!-- HTTPS -->
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var baseUrl = '{{ .Site.BaseUrl }}';
|
var baseURL = '{{ .Site.BaseURL }}';
|
||||||
var host = baseUrl.substring(0, baseUrl.length - 1).replace(/\//g, '');
|
var host = baseURL.substring(0, baseURL.length - 1).replace(/\//g, '');
|
||||||
if ((host === window.location.host) && (window.location.protocol !== 'https:')) {
|
if ((host === window.location.host) && (window.location.protocol !== 'https:')) {
|
||||||
window.location.protocol = 'https:';
|
window.location.protocol = 'https:';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user