mirror of
https://github.com/arcan1s/arcanis.me.git
synced 2025-04-24 15:27:17 +00:00
fix bug with error on 404 redirection
fix warnings
This commit is contained in:
parent
175ca26022
commit
2cd047fabb
6
404.html
6
404.html
@ -29,12 +29,12 @@
|
||||
|
||||
<!-- redirection to russian page -->
|
||||
<script type="text/javascript">
|
||||
var languageinfo=navigator.language? navigator.language : navigator.userLanguage
|
||||
var languageinfo = navigator.language ? navigator.language : navigator.userLanguage
|
||||
function redirectpage(dest) {
|
||||
if (window.location.replace) window.location.replace(dest)
|
||||
else window.location=dest
|
||||
else window.location = dest
|
||||
}
|
||||
if (languageinfo.substr(0,2) == "ru") redirectpage("/ru/404")
|
||||
if (languageinfo.substr(0,2) == "ru") redirectpage("/ru/404.html")
|
||||
</script>
|
||||
<!-- redirection to russian page -->
|
||||
|
||||
|
@ -1,6 +0,0 @@
|
||||
<script type="text/javascript">
|
||||
var host = "arcanis.name";
|
||||
if ((host == window.location.host) && (window.location.protocol != "https:"))
|
||||
window.location.protocol = "https";
|
||||
</script>
|
||||
|
@ -26,7 +26,6 @@
|
||||
document.createElement('figcaption');
|
||||
</script>
|
||||
<![endif]-->
|
||||
{% include ssl-redirect.html %}
|
||||
{% include google_analytics.html %}
|
||||
{% if page.share == true %}
|
||||
{% include header_sharethis.html %}
|
||||
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
layout: none
|
||||
---
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
|
1
feed.xml
1
feed.xml
@ -1,5 +1,4 @@
|
||||
---
|
||||
layout: none
|
||||
---
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
|
@ -32,10 +32,10 @@ title: arcanis' homepage
|
||||
<script type="text/javascript">
|
||||
function redirectpage(dest) {
|
||||
if (window.location.replace) window.location.replace(dest)
|
||||
else window.location=dest
|
||||
else window.location = dest
|
||||
}
|
||||
if (document.referrer != "{{ site.url }}/ru/") {
|
||||
var languageinfo=navigator.language? navigator.language : navigator.userLanguage
|
||||
var languageinfo = navigator.language ? navigator.language : navigator.userLanguage
|
||||
if (languageinfo.substr(0,2) == "ru") redirectpage("/ru/")
|
||||
}
|
||||
</script>
|
||||
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
layout: none
|
||||
---
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
layout: none
|
||||
---
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
|
Loading…
Reference in New Issue
Block a user