feat: add alt tag

This commit is contained in:
Kieran 2023-11-27 19:54:04 +00:00
parent b4cc59d25f
commit 1935b5a051
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -90,7 +90,8 @@ export function NewPage() {
.kind(TorrentKind)
.content(obj.desc)
.tag(["title", obj.name])
.tag(["btih", obj.btih]);
.tag(["btih", obj.btih])
.tag(["alt", `${obj.name}\nTorrent published on https://dtan.xyz`]);
obj.tags.forEach((t) => v.tag(["t", t]));
obj.files.forEach((f) => v.tag(["file", f.name, String(f.size)]));