limour-dev 2 달 전
부모
커밋
62249522b3
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  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;
+}