Skip to content

Commit

Permalink
fix: use noopener for outer link
Browse files Browse the repository at this point in the history
  • Loading branch information
D-Sketon committed Nov 17, 2024
1 parent d23e765 commit 780dbdd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion layouts/partials/post/copyright.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
{{ if $articleCopyright.content.license }}
<p>
<strong>本文版权:</strong>本博客所有文章除特别声明外,均采用
<a href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh"
<a href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh" rel="noopener external nofollow noreferrer" target="_blank"
><span class="icon-creative-commons"></span>BY-NC-SA</a
>
许可协议。转载请注明出处!
Expand Down
2 changes: 1 addition & 1 deletion layouts/shortcodes/externalLinkCard.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<div class="post-link-card-wrap">
<div class="post-link-card">
<a href="{{ $link }}" title="{{ $title }}"></a>
<a href="{{ $link }}" title="{{ $title }}" rel="noopener external nofollow noreferrer" target="_blank"></a>
{{ if eq $cover "auto" }}
<div class="post-link-card-cover-wrap auto">
<div class="icon-globe"></div>
Expand Down

0 comments on commit 780dbdd

Please sign in to comment.