mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-19 12:15:34 -04:00
fix entity encoding in image alt/title attributes
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
<p class="image">
|
||||
<amp-img
|
||||
{{- with .Get "alt" }} alt="{{ . | safeHTMLAttr }}" title="{{ . | safeHTMLAttr }}"{{ else }}
|
||||
{{- with .Inner }} alt="{{ . | markdownify | plainify | safeHTMLAttr }}" title="{{ . | markdownify | plainify | safeHTMLAttr }}"{{ end }}{{ end }}
|
||||
{{- with .Get "alt" }} alt="{{ . | safeHTML }}" title="{{ . | safeHTML }}"{{ else }}
|
||||
{{- with .Inner }} alt="{{ . | markdownify | plainify | safeHTML }}" title="{{ . | markdownify | plainify | safeHTML }}"{{ end }}{{ end }}
|
||||
src="{{ $optimized.Permalink }}"
|
||||
width="{{ .Scratch.Get "displayWidth" }}"
|
||||
height="{{ .Scratch.Get "displayHeight" }}"
|
||||
|
Reference in New Issue
Block a user