remove <a> from img
Ted Unangst tedu@tedunangst.com
Mon, 19 Feb 2024 18:06:13 -0500
2 files changed,
2 insertions(+),
2 deletions(-)
M
views/honk.html
→
views/honk.html
@@ -72,7 +72,7 @@ {{ else }}
{{ if $omitimages }} <p><a href="/d/{{ .XID }}">Image: {{ .Name }}</a>{{ if not (eq .Desc .Name) }} {{ .Desc }}{{ end }}</p> {{ else }} -<a class="donklink" href="/d/{{.XID}}"><img class="donk" src="/d/{{ .XID }}" loading=lazy title="{{ .Desc }}" alt="{{ .Desc }}"></a> +<img class="donk donklink" src="/d/{{ .XID }}" loading=lazy title="{{ .Desc }}" alt="{{ .Desc }}"> {{ end }} {{ end }} {{ else }}
M
views/honkpage.js
→
views/honkpage.js
@@ -278,7 +278,7 @@ els = document.getElementsByClassName("donklink")
while (els.length) { let el = els[0] el.onclick = function() { - el.children[0].classList.remove("donk") + el.classList.remove("donk") el.onclick = null return false }