Skip to content

[next]配置 - 修复 hexo 升级引发的外部链接样式失效的问题 #29

Description

@xovel

hexo 的一个升级 hexo#2820,让之前自己自定义的一个外部链接样式失效了,追查原因之下,我赞同将外部链接的 rel 属性调整为 noopener,故此将主题文件下的样式代码调整一下。

具体文件为: ..\source\css\_common\components\post\post.styl

最后一段代码修改为:

.post-body a[rel~="noopener"] {
  color: #3370BB;
}
.post-body a[rel~="noopener"]:after {
  content:"\f08e";
  font: normal normal normal 14px/1 FontAwesome;
  margin-left:2px;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions