From: XhmikosR Date: Sat, 21 Sep 2019 08:08:47 +0000 (+0300) Subject: tpl: Add `rel="noopener"` for external links X-Git-Tag: v0.59.0~41 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=34dc06b03;p=brevno-suite%2Fhugo tpl: Add `rel="noopener"` for external links This could be a security and performance issue. See https://developers.google.com/web/tools/lighthouse/audits/noopener --- diff --git a/tpl/tplimpl/embedded/templates.autogen.go b/tpl/tplimpl/embedded/templates.autogen.go index 525cff64..0b57077b 100644 --- a/tpl/tplimpl/embedded/templates.autogen.go +++ b/tpl/tplimpl/embedded/templates.autogen.go @@ -380,7 +380,7 @@ if (!doNotTrack) {
{{ $item.author_name }}
- Instagram Image + Instagram Image
{{ if not $hideCaption }}

{{ $item.author_name }} {{ $item.title}}

{{ end }} View More on Instagram @@ -486,7 +486,7 @@ if (!doNotTrack) { {{ $secondClass := "s_video_simple" }}
{{- with $item }} - + {{ $thumb := .thumbnail_url }} {{ $original := $thumb | replaceRE "(_.*\\.)" "." }} {{ .title }} diff --git a/tpl/tplimpl/embedded/templates/shortcodes/instagram_simple.html b/tpl/tplimpl/embedded/templates/shortcodes/instagram_simple.html index 075fe980..d816093a 100644 --- a/tpl/tplimpl/embedded/templates/shortcodes/instagram_simple.html +++ b/tpl/tplimpl/embedded/templates/shortcodes/instagram_simple.html @@ -15,7 +15,7 @@ - Instagram Image + Instagram Image
{{ if not $hideCaption }}

{{ $item.author_name }} {{ $item.title}}

{{ end }} View More on Instagram diff --git a/tpl/tplimpl/embedded/templates/shortcodes/vimeo_simple.html b/tpl/tplimpl/embedded/templates/shortcodes/vimeo_simple.html index 50699ecd..9a4fb794 100644 --- a/tpl/tplimpl/embedded/templates/shortcodes/vimeo_simple.html +++ b/tpl/tplimpl/embedded/templates/shortcodes/vimeo_simple.html @@ -10,7 +10,7 @@ {{ $secondClass := "s_video_simple" }}