limour-dev 2 ay önce
ebeveyn
işleme
62249522b3
1 değiştirilmiş dosya ile 6 ekleme ve 1 silme
  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;
+}