mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-22 03:42:53 +00:00
Remove enforce_ssl setting
This commit is contained in:
parent
daca1fe109
commit
8549e0c94b
2 changed files with 0 additions and 11 deletions
|
@ -1,7 +1,6 @@
|
|||
baseURL = "https://example.org/" # Your domain name. Must end with "/"
|
||||
DefaultContentLanguage = "en"
|
||||
theme = "introduction"
|
||||
enforce_ssl = false
|
||||
# disqusshortname = "" # Enable Disqus for comments https://gohugo.io/content-management/comments
|
||||
# googleAnalytics = "" # Enable Google Analytics https://gohugo.io/templates/internal/#google-analytics
|
||||
|
||||
|
|
|
@ -12,13 +12,3 @@
|
|||
{{ if .RSSLink }}
|
||||
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
|
||||
{{ end }}
|
||||
<!-- HTTPS -->
|
||||
{{ if .Site.Params.enforce_ssl }}
|
||||
<script type="text/javascript">
|
||||
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:';
|
||||
}
|
||||
</script>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue