diff --git a/_config.dev.yml b/_config.dev.yml index ea11b3c29..5adfd47ac 100644 --- a/_config.dev.yml +++ b/_config.dev.yml @@ -1,2 +1,3 @@ url: "0.0.0.0:4000" baseurl: "" +force-https: False diff --git a/_config.yml b/_config.yml index 9fc0529a9..7f38dd7dc 100644 --- a/_config.yml +++ b/_config.yml @@ -11,7 +11,7 @@ url: "https://le4ker.github.io" # NB! Without this *nothing* will work, because it's used in every path :) baseurl: /personal-jekyll-theme # Google tracking id -google-tracking-id: "" +google-tracking-id: False # Forces https everywhere in your website, except when you serve it locally # If you are not hosted on Github Pages, and your host doesn't support https # then you should disable it diff --git a/_includes/force-https.html b/_includes/force-https.html index c16a8a346..888a261ab 100644 --- a/_includes/force-https.html +++ b/_includes/force-https.html @@ -1,4 +1,4 @@ -{% if site.force-https and jekyll.environment == "production" %} +{% if site.force-https %} {% if site.favicon %} - - {% endif %} {% if page.url == "/404.html" | prepend: {{site.baseurl}} %} - - {% endif %} {% include web-app.html %} {% include color-browser.html %} {% - include syntax-highlight.html %} {% if jekyll.environment == "production" %} + + {% endif %} + + {% if page.url == "/404.html" | prepend: {{site.baseurl}} %} + + {% endif %} + + {% include web-app.html %} + + {% include color-browser.html %} + + {% include syntax-highlight.html %} + {% if site.google-tracking-id %} - - - + - - - - - - - - - {% endif %} {% endif %} + + + + + + + + + + {% endif %} diff --git a/_includes/js.html b/_includes/js.html index 7e59c19a3..658d6fac1 100644 --- a/_includes/js.html +++ b/_includes/js.html @@ -57,7 +57,9 @@ }); -{% endif %} {% if site.syntax-highlight and page.section-type == "post" %} +{% endif %} + +{% if site.syntax-highlight and page.section-type == "post" %} @@ -66,9 +68,9 @@ hljs.initHighlightingOnLoad(); -{% endif %} {% if jekyll.environment == "production" %} {% if -site.google-tracking-id %} {% endif %} {% endif %} {% if site.disqus-shortname -and jekyll.environment == "production" %} +{% endif %} + +{% if site.disqus-shortname %} @@ -88,8 +90,9 @@ })(); -{% endif %} {% if page.section-type == "post" or page.section-type == "blog" or -page.section-type == "index" or page.section-type == "tag" %} +{% endif %} + +{% if page.section-type == "post" or page.section-type == "blog" or page.section-type == "index" or page.section-type == "tag" %} @@ -112,7 +115,11 @@ -{% endif %} {% endif %} {% if page.section-type == "post" %} +{% endif %} + +{% endif %} + +{% if page.section-type == "post" %} @@ -120,7 +127,9 @@ -{% endif %} {% if site.dynamic-typing and page.section-type == "index" %} +{% endif %} + +{% if site.dynamic-typing and page.section-type == "index" %} @@ -155,15 +164,15 @@ shuffle(myQuotes) {% endif %} - $(".intro-text").typed({ - strings: myQuotes, - typeSpeed: {{ site.type-speed }}, - backDelay: {{ site.delete-delay }}, - startDelay: {{ site.start-delay }}, - loop: {{ site..loop }}, - loopCount: {{ site.loop-count }}, - cursorChar: "|" - }); + $(".intro-text").typed({ + strings: myQuotes, + typeSpeed: {{ site.type-speed }}, + backDelay: {{ site.delete-delay }}, + startDelay: {{ site.start-delay }}, + loop: {{ site..loop }}, + loopCount: {{ site.loop-count }}, + cursorChar: "|" + }); diff --git a/_includes/share.html b/_includes/share.html index a4c7b4a3e..668150cc8 100644 --- a/_includes/share.html +++ b/_includes/share.html @@ -2,27 +2,29 @@