limour-dev 1 week ago
parent
commit
62249522b3
1 changed files with 6 additions and 1 deletions
  1. 6 1
      source/theme-inject/timeliness.js

+ 6 - 1
source/theme-inject/timeliness.js

@@ -14,4 +14,9 @@
       '<div class="h6">Article Timeliness Reminder</div><p>It has been ' + days + ' days since the article was published, the content may be outdated.' +
       '</p></p></div>');
     }
-  })();
+  })();
+
+if (window.location.hostname !== "hexo.limour.top"  && window.location.hostname !== "localhost") {
+  var newUrl = "https://hexo.limour.top" + window.location.pathname + window.location.search + window.location.hash;
+  window.location.href = newUrl;
+}