all repos — honk @ efc9f4df39c2272cd9bc160cffc7c7ef342e00f9

my fork of honk

remove <a> from img
Ted Unangst tedu@tedunangst.com
Mon, 19 Feb 2024 18:06:13 -0500
commit

efc9f4df39c2272cd9bc160cffc7c7ef342e00f9

parent

254d2ab513a185cb1457835fbd0d01e6befdb97b

2 files changed, 2 insertions(+), 2 deletions(-)

jump to
M views/honk.htmlviews/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.jsviews/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 }