maybe try name for alt and desc for title
This commit is contained in:
parent
5a38dc76bc
commit
5652df819f
|
@ -47,7 +47,7 @@ in reply to: <a href="{{ .RID }}" rel=noreferrer>{{ .RID }}</a>
|
|||
{{ 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 @@ in reply to: <a href="{{ .RID }}" rel=noreferrer>{{ .RID }}</a>
|
|||
{{ 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 }}
|
||||
|
|
Loading…
Reference in New Issue