From f76ac3e9f5dbb6d9bc928ae40d87101183686e63 Mon Sep 17 00:00:00 2001 From: sijanec Date: Sun, 15 Nov 2020 02:24:46 +0100 Subject: dodal https predlog --- _config.yml | 2 +- _includes/footer.html | 8 +++++++- _layouts/default.html | 1 + assets/js/main.js | 10 ++++++++++ test.html | 6 ++++++ 5 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 assets/js/main.js diff --git a/_config.yml b/_config.yml index 614d21e..0033d4a 100644 --- a/_config.yml +++ b/_config.yml @@ -49,7 +49,7 @@ defaults: values: layout: "default" - scope: - path: "" + path: "_redirects" values: layout: "redirect" diff --git a/_includes/footer.html b/_includes/footer.html index 67254b8..ef08779 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -1,4 +1,10 @@

-Vse pravice pridržane. © {{ site.name }}, 2020 | stran generirana: {{ site.time | date: site.short_datetime_format }} + Vse pravice pridržane. © {{ site.name }}, 2020 | stran generirana: {{ site.time | date: site.short_datetime_format }} +

diff --git a/_layouts/default.html b/_layouts/default.html index ee2c686..e85e731 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -19,5 +19,6 @@ {% include navigation.html %} {{ content }} {% include footer.html %} + diff --git a/assets/js/main.js b/assets/js/main.js new file mode 100644 index 0000000..c19eb0f --- /dev/null +++ b/assets/js/main.js @@ -0,0 +1,10 @@ +if (document.location.protocol != "https:" + && ( + window.location.hostname.endsWith("sijanec.eu") + || window.location.hostname.endsWith("xn--ijanec-9jb.eu"))) { + fetch("/?preveri-https").then((response)=>{ + document.getElementById("ponudi-https").hidden = false; + }).catch((error)=>{ + console.log("ne bom predlagal HTTPS, ker HTTPS ne deluje, ker: "+error); + }); +} diff --git a/test.html b/test.html index 26d796c..f23b572 100644 --- a/test.html +++ b/test.html @@ -1,5 +1,11 @@ --- --- + +objave {% assign argv = "2020-11-01 23:59:59" | split: ","%} {% include datumincas.html %} {{return}}
{% assign argv = "2020-11-02 23:59:59" | split: ","%} -- cgit v1.2.3