Add noreferrer to image tags
This doesn't cover the magical div ones, but it's a start
This commit is contained in:
parent
6dee411ce8
commit
822198a7df
4 changed files with 4 additions and 4 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
<figure class="text-center">
|
||||
<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>
|
||||
<figcaption class="text-center">
|
||||
<small>{{ .Text | markdownify }}</small>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<div id="light-gallery" class="row">
|
||||
{{ range $element := $photoset.photo }}
|
||||
<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>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<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>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
{{ $data := dict "code" .Inner "mermaid" $mermaidData }}
|
||||
|
||||
<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">
|
||||
<small>{{ .Get "caption" }}</small>
|
||||
</figcaption>
|
||||
|
|
Loading…
Reference in a new issue