Add rel=author Nostr links to article pages

This commit is contained in:
Râu Cao 2025-04-30 12:22:39 +04:00
parent 038ce15908
commit e3bd385c96
Signed by: raucao
GPG Key ID: 37036C356E56CC51

View File

@ -231,6 +231,7 @@ function articleMetaHtml(article: Article, profile: Profile) {
return `
<link rel="icon" href="${profile.avatarImageUrl}" type="image/png">
<link rel="alternate" type="application/nostr+json" href="nostr:${article.naddr}" title="This article on Nostr">
<link rel="author" type="application/nostr+json" href="nostr:${profile.npub}" title="${profile.name}">
<meta property="og:url" content="${article.url}">
<meta property="og:type" content="website">
<meta property="og:title" content="${article.title}">