Skip to content

Commit

Permalink
theme: remove link rel(noopener) in blog
Browse files Browse the repository at this point in the history
  • Loading branch information
tianheg committed May 6, 2022
1 parent 7345aa8 commit 6e8dfb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion themes/tianheg/layouts/partials/utils/markdownify.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<!-- External Links -->
{{- if $.Site.Params.hrefTargetBlank -}}
{{- $Content = replaceRE `(<a href="https?:[^"]+")` `$1 target="_blank" rel="noopener"` $Content -}}
{{- $Content = replaceRE `(<a href="https?:[^"]+")` `$1 target="_blank"` $Content -}}
{{- end -}}

{{- $Content | safeHTML -}}

0 comments on commit 6e8dfb4

Please sign in to comment.