🎨 Try to remove the post link in creative commons.

This commit is contained in:
凡梦星尘 2022-10-16 20:16:24 +08:00
parent e0cfe0c50c
commit c0ba7eda06
2 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@ NexT.boot.refresh = function() {
NexT.utils.registerSidebarTOC(); NexT.utils.registerSidebarTOC();
NexT.utils.replacePostCRLink(); //NexT.utils.replacePostCRLink();
NexT.utils.registerCopyCode(); NexT.utils.registerCopyCode();
NexT.utils.registerPostReward(); NexT.utils.registerPostReward();
if(NexT.CONFIG.page.comments) { if(NexT.CONFIG.page.comments) {

View File

@ -278,7 +278,7 @@ NexT.utils = {
return res_src; return res_src;
}, },
replacePostCRLink: function() { /* replacePostCRLink: function() {
if (NexT.CONFIG.hostname.startsWith('http')) return; if (NexT.CONFIG.hostname.startsWith('http')) return;
// Try to support mutli domain without base URL sets. // Try to support mutli domain without base URL sets.
let href = window.location.href; let href = window.location.href;
@ -289,7 +289,7 @@ NexT.utils = {
if (!postLink) return; if (!postLink) return;
postLink.text = href; postLink.text = href;
postLink.href = href; postLink.href = href;
}, },*/
/** /**
* One-click copy code support. * One-click copy code support.