Add download attribute to release attachments (#28739) (#28740)

Backport #28739 by @JakobDev

Fixes #28736

Co-authored-by: JakobDev <jakobdev@gmx.de>
(cherry picked from commit 12f418a7e80887ec9927eea27f5770736169c17a)
This commit is contained in:
Giteabot 2024-01-09 21:18:13 +08:00 committed by Earl Warren
parent 01285dc47c
commit fab93c6393
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -94,7 +94,7 @@
{{if .Attachments}}
{{range .Attachments}}
<li>
<a target="_blank" rel="nofollow" href="{{.DownloadURL}}">
<a target="_blank" rel="nofollow" href="{{.DownloadURL}}" download>
<strong>{{svg "octicon-package" 16 "gt-mr-2"}}{{.Name}}</strong>
</a>
<div>