From 4cc4604498e0c3933c07ec4267e674e857a5af5c Mon Sep 17 00:00:00 2001
From: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
Date: Wed, 18 Nov 2020 15:45:19 +0530
Subject: [PATCH] cover: add rel="noopener noreferrer" to links
---
layouts/partials/cover.html | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/layouts/partials/cover.html b/layouts/partials/cover.html
index b4487329..c1861cf3 100644
--- a/layouts/partials/cover.html
+++ b/layouts/partials/cover.html
@@ -5,7 +5,8 @@
{{- $addLink := (and .Site.Params.cover.linkFullImages (not $.IsHome)) }}
{{- $cover := (.Page.Resources.ByType "image").GetMatch (printf "*%s*" (.Params.cover.image)) }}
{{- if $cover -}}{{/* i.e it is present in page bundle */}}
- {{- if $addLink }}{{ end -}}
+ {{- if $addLink }}{{ end -}}
{{- $sizes := (slice "360" "480" "720" "1080" "1500") }}
{{- $processableFormats := (slice "jpg" "jpeg" "png" "tif" "bmp" "gif") }}
{{- $prod := (eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production")) }}
@@ -20,7 +21,8 @@
{{- end }}
{{- else }}{{/* For absolute urls and external links, no img processing here */}}
- {{- if $addLink }}{{ end -}}
+ {{- if $addLink }}{{ end -}}
{{- end }}
{{- if $addLink }}{{ end -}}