diff options
author | sijanec <sijanecantonluka@gmail.com> | 2020-11-15 02:24:46 +0100 |
---|---|---|
committer | sijanec <sijanecantonluka@gmail.com> | 2020-11-15 02:24:46 +0100 |
commit | f76ac3e9f5dbb6d9bc928ae40d87101183686e63 (patch) | |
tree | f7f88869563847f03165b4374da48f852f2f5dd4 | |
parent | izbrisal telefonsko številko (diff) | |
download | sijanec.eu-f76ac3e9f5dbb6d9bc928ae40d87101183686e63.tar sijanec.eu-f76ac3e9f5dbb6d9bc928ae40d87101183686e63.tar.gz sijanec.eu-f76ac3e9f5dbb6d9bc928ae40d87101183686e63.tar.bz2 sijanec.eu-f76ac3e9f5dbb6d9bc928ae40d87101183686e63.tar.lz sijanec.eu-f76ac3e9f5dbb6d9bc928ae40d87101183686e63.tar.xz sijanec.eu-f76ac3e9f5dbb6d9bc928ae40d87101183686e63.tar.zst sijanec.eu-f76ac3e9f5dbb6d9bc928ae40d87101183686e63.zip |
-rw-r--r-- | _config.yml | 2 | ||||
-rw-r--r-- | _includes/footer.html | 8 | ||||
-rw-r--r-- | _layouts/default.html | 1 | ||||
-rw-r--r-- | assets/js/main.js | 10 | ||||
-rw-r--r-- | test.html | 6 |
5 files changed, 25 insertions, 2 deletions
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 @@ <hr> <p> -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 }} + <span id=ponudi-https hidden=true > + | <!-- uporabnik itak poganja javascript, ker se mu je to sploh odprlo --> + <a href=javascript:window.location.protocol="https:" > + https + </a> + </span> </p> 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 %} + <script src=/assets/js/main.js ></script> </body> </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); + }); +} @@ -1,5 +1,11 @@ --- --- +<style> + a[href^=http] { + color: red; /* na žalost ne deluje (: */ + } +</style> +<a href="/blog/objave.html">objave</a> {% assign argv = "2020-11-01 23:59:59" | split: ","%} {% include datumincas.html %} {{return}} <br> {% assign argv = "2020-11-02 23:59:59" | split: ","%} |