Add alternative nostr links to HTML meta tags
All checks were successful
CI / Test and lint (push) Successful in 19s
All checks were successful
CI / Test and lint (push) Successful in 19s
This commit is contained in:
parent
5b0397268b
commit
fa21e72b3f
2
html.ts
2
html.ts
@ -212,6 +212,7 @@ function feedLinksHtml(profile: Profile) {
|
||||
function profileMetaHtml(profile: Profile) {
|
||||
return `
|
||||
<link rel="icon" href="${profile.avatarImageUrl}" type="image/png">
|
||||
<link rel="alternate" type="application/nostr+json" href="nostr:${profile.npub}" title="${profile.name} on Nostr">
|
||||
<meta property="og:url" content="${profile.profileUrl}">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:title" content="${profile.name} on Nostr">
|
||||
@ -231,6 +232,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">
|
||||
<meta property="og:url" content="${article.url}">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:title" content="${article.title}">
|
||||
|
Loading…
x
Reference in New Issue
Block a user