diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-06-18 13:55:13 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-06-18 13:55:13 +0300 |
commit | 937f2fb29aa7e724848ef1e79e8812a3988acebc (patch) | |
tree | 1795b7576e5adc8dadf05b9ebcdee957e826eb34 | |
parent | edaa008f38dfa6109c526cc36ab187ebc3b67c2a (diff) |
Move https redirect _redirects
-rw-r--r-- | layouts/partials/head-additions.html | 8 | ||||
-rw-r--r-- | static/_redirects | 1 |
2 files changed, 1 insertions, 8 deletions
diff --git a/layouts/partials/head-additions.html b/layouts/partials/head-additions.html index 1a90f41..aca524c 100644 --- a/layouts/partials/head-additions.html +++ b/layouts/partials/head-additions.html @@ -22,11 +22,3 @@ transition: opacity 300ms; } </style> -{{ if eq (getenv "HUGO_ENV") "production" }} -<script type="text/javascript"> -var loc = window.location.href+''; -if (loc.indexOf('http://')==0){ - window.location.href = loc.replace('http://','https://'); -} -</script> -{{ end }} diff --git a/static/_redirects b/static/_redirects new file mode 100644 index 0000000..fffad56 --- /dev/null +++ b/static/_redirects @@ -0,0 +1 @@ +http://* https://:splat
\ No newline at end of file |