From c0ba7eda06cc82d76116e7bccb913f0432477860 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=A1=E6=A2=A6=E6=98=9F=E5=B0=98?= Date: Sun, 16 Oct 2022 20:16:24 +0800 Subject: [PATCH] :art: Try to remove the post link in creative commons. --- assets/js/next-boot.js | 2 +- assets/js/utils.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/js/next-boot.js b/assets/js/next-boot.js index e04c5e6..3991921 100644 --- a/assets/js/next-boot.js +++ b/assets/js/next-boot.js @@ -47,7 +47,7 @@ NexT.boot.refresh = function() { NexT.utils.registerSidebarTOC(); - NexT.utils.replacePostCRLink(); + //NexT.utils.replacePostCRLink(); NexT.utils.registerCopyCode(); NexT.utils.registerPostReward(); if(NexT.CONFIG.page.comments) { diff --git a/assets/js/utils.js b/assets/js/utils.js index e34087e..795b5f2 100644 --- a/assets/js/utils.js +++ b/assets/js/utils.js @@ -278,7 +278,7 @@ NexT.utils = { return res_src; }, - replacePostCRLink: function() { + /* replacePostCRLink: function() { if (NexT.CONFIG.hostname.startsWith('http')) return; // Try to support mutli domain without base URL sets. let href = window.location.href; @@ -289,7 +289,7 @@ NexT.utils = { if (!postLink) return; postLink.text = href; postLink.href = href; - }, + },*/ /** * One-click copy code support.