all repos — honk @ a570b38eb560d950c4edd30b0f7b0395912aacac

my fork of honk

maybe try name for alt and desc for title
Ted Unangst tedu@tedunangst.com
Mon, 09 Sep 2019 12:28:03 -0400
commit

a570b38eb560d950c4edd30b0f7b0395912aacac

parent

a64ddd2ab4a4e7a10fbdd2cd96c84f5d0c880a3e

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

jump to
M views/honk.htmlviews/honk.html

@@ -47,7 +47,7 @@ {{ if .Local }}

{{ if eq .Media "text/plain" }} <p><a href="/d/{{ .XID }}">Attachment: {{ .Name }}</a> {{ else }} -<p><a href="/d/{{ .XID }}"><img src="/d/{{ .XID }}" title="{{ .Desc }}" alt="{{ .Desc }}"></a> +<p><a href="/d/{{ .XID }}"><img src="/d/{{ .XID }}" title="{{ .Desc }}" alt="{{ .Name }}"></a> {{ end }} {{ else }} {{ if .XID }}

@@ -56,7 +56,7 @@ {{ else }}

{{ if eq .Media "video/mp4" }} <p><a href="{{ .URL }}"><video controls src="{{ .URL }}">{{ .Name }}</video></a> {{ else }} -<p><a href="{{ .URL }}"><img src="{{ .URL }}" title="{{ .Desc }}" alt="{{ .Desc }}"></a> +<p><a href="{{ .URL }}"><img src="{{ .URL }}" title="{{ .Desc }}" alt="{{ .Name }}"></a> {{ end }} {{ end }} {{ end }}