From b8e2a444d864f46255d31d45ba4b73766df301cb Mon Sep 17 00:00:00 2001 From: Panos Sakkos Date: Mon, 19 Oct 2015 00:16:38 +0200 Subject: [PATCH] Force https --- _config.yml | 4 ++++ _includes/head.html | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/_config.yml b/_config.yml index f41bf07..b33b204 100755 --- a/_config.yml +++ b/_config.yml @@ -12,6 +12,10 @@ baseurl: /personal-jekyll-theme google-tracking-id: "" +# Forces https everywhere in your website, except when you serve it locally + +force-https: True + ############# # HTML Head # ############# diff --git a/_includes/head.html b/_includes/head.html index 2e572dd..b0496f0 100755 --- a/_includes/head.html +++ b/_includes/head.html @@ -36,6 +36,13 @@ {% if site.favicon %} {% endif %} + {% if site.force-https %} + + {% endif %}