Add M4N-Dock redirect

This commit is contained in:
taorye
2025-07-11 20:43:25 +08:00
parent 8660875c1e
commit 875fa7917b
2 changed files with 17 additions and 4 deletions

View File

@@ -0,0 +1,17 @@
<script>
var hash = window.location.hash
var url_language = "zh"
if( navigator.language.indexOf("zh") == -1 )
{
url_language = "en"
}
switch (window.location.hash) {
case "#c8" :
location.href = window.location.origin + "/hardware/" + url_language + "/maixIV/m4ndock/intro.html"
break;
default :
location.href = window.location.origin + "/hardware/" + url_language + "/maixIV/m4ndock/intro.html"
}
</script>

View File

@@ -1,4 +0,0 @@
---
layout: redirect
redirect_url: /hardware/zh/maixIV/m4ndock/m4ndock.html
---