1
Fork 0

Add noreferrer to image tags

This doesn't cover the magical div ones, but it's a start
This commit is contained in:
Jake Howard 2021-02-06 23:09:10 +00:00
parent 6dee411ce8
commit 822198a7df
Signed by: jake
GPG key ID: 57AFB45680EDD477
4 changed files with 4 additions and 4 deletions

View file

@ -8,7 +8,7 @@
<figure class="text-center"> <figure class="text-center">
<a href="{{ $destination | safeURL }}" target="_blank"> <a href="{{ $destination | safeURL }}" target="_blank">
<img src="{{ $destination | safeURL }}" alt="{{ .Text | plainify }}" style='max-width: {{ default "90" .Title }}%;'/> <img src="{{ $destination | safeURL }}" alt="{{ .Text | plainify }}" style='max-width: {{ default "90" .Title }}%;' referrerpolicy="no-referrer"/>
</a> </a>
<figcaption class="text-center"> <figcaption class="text-center">
<small>{{ .Text | markdownify }}</small> <small>{{ .Text | markdownify }}</small>

View file

@ -12,7 +12,7 @@
<div id="light-gallery" class="row"> <div id="light-gallery" class="row">
{{ range $element := $photoset.photo }} {{ range $element := $photoset.photo }}
<a href="{{ $element.url_k }}" title="{{ $element.title }}" class="col-md-2 col-xs-12"> <a href="{{ $element.url_k }}" title="{{ $element.title }}" class="col-md-2 col-xs-12">
<img src="{{ $element.url_q }}" alt="{{ $element.title }}"/> <img src="{{ $element.url_q }}" alt="{{ $element.title }}" referrerpolicy="no-referrer"/>
</a> </a>
{{ end }} {{ end }}
</div> </div>

View file

@ -1,3 +1,3 @@
<a href="{{ .Site.Data.social.accounts.buymeacoffee.link }}" class="bmac-pill" title="Buy Me A Coffee"> <a href="{{ .Site.Data.social.accounts.buymeacoffee.link }}" class="bmac-pill" title="Buy Me A Coffee">
<img src="https://cdn.buymeacoffee.com/widget/assets/coffee%20cup.svg" alt="Buy Me A Coffee" referrerpolicy="no-referrer"/> <img src="https://cdn.buymeacoffee.com/widget/assets/coffee%20cup.svg" alt="Buy Me A Coffee" referrerpolicy="no-referrer" />
</a> </a>

View file

@ -3,7 +3,7 @@
{{ $data := dict "code" .Inner "mermaid" $mermaidData }} {{ $data := dict "code" .Inner "mermaid" $mermaidData }}
<figure class="mermaid"> <figure class="mermaid">
<img src="https://mermaid.ink/img/{{ $data | jsonify | base64Encode }}" /> <img src="https://mermaid.ink/img/{{ $data | jsonify | base64Encode }}" referrerpolicy="no-referrer" />
<figcaption class="text-center"> <figcaption class="text-center">
<small>{{ .Get "caption" }}</small> <small>{{ .Get "caption" }}</small>
</figcaption> </figcaption>