Regularly old render-hooks or templates crop up from God-knows-where, and editing the real ones has no effect. It acts on both production and server environment.
Here’s the exemple:
partial code render-link.html
<figure>{{ with .Title }}
<figcaption class=figcaption_class>
{{.|$.Page.RenderString}}</figcaption>
{{ end }}
<img srcset="{{ $smallest.RelPermalink }} {{$smallest.Width}}w{{ range uniq (slice $very_small $small $smallmedium $medium $mediumlarge $large $img) }},
{{ .RelPermalink }} {{.Width}}w{{end}}" {{ with $smallest }}width="{{.Width}}" height="{{.Height}}"{{end}}
src="{{ $large.RelPermalink }}"
loading="{{with .Attributes.loading}}{{ . }}{{else}}lazy{{end}}"
sizes="(max-width: 400px) 100vw, (max-width: 604px) 50vw, 42.5vw"></figure>
html produced:
<figure id=normal class=image><figcaption class=figcaption_class>Find your origins lost to time</figcaption><a href=./Images/spirituality/mythology/modern/warcraft/new_cover_warcraft.webp target=_blank><img src=./Images/spirituality/mythology/modern/warcraft/new_cover_warcraft.webp srcset=“./Images/spirituality/mythology/modern/warcraft/new_cover_warcraft_hue1da11df08ad4ace5b3ba148baef5363_411026_200x0_resize_q100_h2_mitchellnetravali_2.webp 200w, ./Images/spirituality/mythology/modern/warcraft/new_cover_warcraft_hue1da11df08ad4ace5b3ba148baef5363_411026_400x0_resize_q100_h2_mitchellnetravali_2.webp 400w, ./Images/spirituality/mythology/modern/warcraft/new_cover_warcraft.webp 549w” width=549 height=707 loading=eager alt=cover title=“Find your origins lost to time” sizes=“(max-width: 400px) 100vw, (max-width: 604px) 50vw, 35vw” style=background-image:url(data:image/webp;base64,UklGRsoAAABXRUJQVlA4IL4AAACwBQCdASoUABoAPqVEmEejIaEUBVQzCkT2AFiPmXjcMAAkiKH/bSvk4q9fhRRihDMlY5AuagAA/uxKvdrrlpkxWQT6mxzii3ei5F0nhVGmg1dXf718X/FPEnz66LtCa+wQtQqLWvMTv2bUBtHpTsRNjJs/k0sguscCz5D2kUnofoCJGGiXRzImJzVVmvLkd0E+qqpmCpZ5MEA2qKQsy/SgfEyK4nQWWtKfON827dwhbp3rsc25kdQzA68UAAAA);background-size:cover></a></figure>
I thought precedently that it had mixed up the normal hook and that of the home type, but no ! It’s an old model I can’t seem to modify anywhere. Even emptying the hooks entirely doesn’t disturb it.
Where do these “hidden templates” come from ?