From 34dc06b032741abac342d7a2a77510ded9b72ae8 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sat, 21 Sep 2019 11:08:47 +0300 Subject: [PATCH] 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 --- tpl/tplimpl/embedded/templates.autogen.go | 4 ++-- .../embedded/templates/shortcodes/instagram_simple.html | 2 +- tpl/tplimpl/embedded/templates/shortcodes/vimeo_simple.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tpl/tplimpl/embedded/templates.autogen.go b/tpl/tplimpl/embedded/templates.autogen.go index 525cff64f..0b57077bb 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 075fe980f..d816093a6 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 50699ecd4..9a4fb794d 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" }}