分页: 1 / 1

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

发表于 : 2017年 10月 30日 11:57
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 这个文件

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

发表于 : 2017年 11月 8日 23:14
journey.ad
用js添加

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

发表于 : 2017年 11月 9日 06:03
m4go
我更喜欢这个插件:https://plugins.typecho.me/plugins/shortlinks.html
把你所有外链,转换成了/go/aHR0cHM6Ly9kcmliYmJ 这种格式,还会自动添加target_blank属性

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

发表于 : 2017年 11月 10日 11:19
kavico
Typecho1.1给外链加rel="nofollow"和target="_blank"属性,您可以使用MyBlank插件,https://www.kavico.net/post/888.html