aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_includes/head.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/_includes/head.html b/_includes/head.html
index 596185a..9fc064d 100644
--- a/_includes/head.html
+++ b/_includes/head.html
@@ -4,4 +4,10 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/style/main.css">
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono" rel="stylesheet">
-</head> \ No newline at end of file
+ <script>
+ var host = "noahloomans.com";
+ if ((host == window.location.host) && (window.location.protocol != 'https:')) {
+ window.location = window.location.toString().replace(/^http:/, "https:");
+ }
+ </script>
+</head>