typecho1.1 怎么给外链加 nofollow 和 target 属性

插件开发及发布

版主: woniou

回复
purple11261126
帖子: 4
注册时间: 2017年 10月 9日 17:08

typecho1.1 怎么给外链加 nofollow 和 target 属性

帖子 purple11261126 »

想问下大家,typecho1.1 正式版怎么给文章里出现的外链加 nofollow 和 target 属性
就像前一个版本这样:https://www.qiansw.com/add-the-nofollow-and-target-properties-to-the-typecho-article-url.html

新版去掉了 /var/CommonMark/HtmlRenderer.php 这个文件
journey.ad
帖子: 14
注册时间: 2015年 7月 25日 13:46
联系:

Re: typecho1.1 怎么给外链加 nofollow 和 target 属性

帖子 journey.ad »

用js添加
头像
m4go
帖子: 857
注册时间: 2010年 3月 29日 02:33
来自: https://www.vpshu.com
联系:

Re: typecho1.1 怎么给外链加 nofollow 和 target 属性

帖子 m4go »

我更喜欢这个插件:https://plugins.typecho.me/plugins/shortlinks.html
把你所有外链,转换成了/go/aHR0cHM6Ly9kcmliYmJ 这种格式,还会自动添加target_blank属性
kavico
帖子: 19
注册时间: 2017年 11月 10日 10:55
联系:

Re: typecho1.1 怎么给外链加 nofollow 和 target 属性

帖子 kavico »

Typecho1.1给外链加rel="nofollow"和target="_blank"属性,您可以使用MyBlank插件,https://www.kavico.net/post/888.html
回复