Open ZvonimirSun opened 5 years ago
This tag need to remove, actually, he not need anymore. Because exturl.js
tag was replaced by exturl.js
filter. Filter just make autoreplace all links by extlinks in post.
With tag we need to write: {% exturl link path %}
With filter we just write simple link: [link](path)
next-url.js
helper used only on templates (swig files). So, if we want to remove sidebar blogrolls, we can modify this line:
But i dont understand why it needed? Not to encrypt blogroll links. Can u explain this? And we can also just add option on this links.
@ivan-nginx emmm, I think that blogroll links are used to increase backlinks, increase the weight of the website, such as Google PR value, and to attract search engine spiders to crawl links. When they are encrypted, the search engines can't find those links.
I think that blogroll links are used to increase backlinks, increase the weight of the website
U think or u know? Maybe vise versa? Decrease weight of website? Because:
Maybe we can read somewhere about SEO in similarities? Maybe i also can be wrong.
@ivan-nginx I mean I exchange links with other people, they add my links and I shouldn't encrypt their links. The search engine really can't detect the encrypted links. By the way, if i reprint an article, I shouldn't encrypt the riginal link. Maybe it's necessary to keep some links unencrypted.
Maybe I should add an extra page to do this instead of putting them in the sidebar. Will there be a per_page switch for the exturl? That maybe a better way to solve my problem.
Ok, i'll add extra option on this links. Wait for feature.
@ivan-nginx Thanks.
@ZvonimirSun Replace this line https://github.com/theme-next/hexo-theme-next/blob/9f2d56af713bf873d59f11d525b1f5676c502a60/scripts/filters/exturl.js#L20
with
$('a').not('.links-of-blogroll-item a').each(function() {
Issue Checklist
I agree and want to create new issue
Expected behavior
侧边栏友情链接部分的外链不加密。
Don't add external URL with BASE64 encrypt & decrypt on friend links in sidebar blogrolls.
Actual behavior
在v6.7.0中,侧边栏友情链接部分的外链是通过异步加载方式加载出来的。虽然这里的链接没有被替换成加密链接,但是由于是异步加载出的链接,搜索引擎无法检测到页面上存在外链,达不到友情链接的应有效果。
In v6.7.0, friend links in sidebar blogrolls is loaded by asynchronous loading, and the search engine cannot detect that there is an exturnal link on the page, and the effect of friend links is not achieved.
在最新master中的版本,侧边栏友情链接部分的外链也被自动加密。
And in the master version, the friend links in sidebar blogrolls are also encrypted automatically.
Steps to reproduce the behavior
Node.js and NPM Information
Package dependencies Information
Hexo Information
Hexo version
Hexo Configuration
NexT Information
NexT Version:
NexT Scheme:
NexT Configuration:
Other Information