Add more link rel elements, use nprofile
All checks were successful
CI / Test and lint (push) Successful in 17s
All checks were successful
CI / Test and lint (push) Successful in 17s
This commit is contained in:
parent
e3bd385c96
commit
7c2549cbfe
4
html.ts
4
html.ts
@ -210,7 +210,8 @@ function feedLinksHtml(profile: Profile) {
|
|||||||
function profileMetaHtml(profile: Profile) {
|
function profileMetaHtml(profile: Profile) {
|
||||||
return `
|
return `
|
||||||
<link rel="icon" href="${profile.avatarImageUrl}" type="image/png">
|
<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">
|
<link rel="me" type="application/nostr+json" href="nostr:${profile.nprofile}" title="${profile.name}">
|
||||||
|
<link rel="alternate" type="application/nostr+json" href="nostr:${profile.nprofile}" title="${profile.name} on Nostr">
|
||||||
<meta property="og:url" content="${profile.profileUrl}">
|
<meta property="og:url" content="${profile.profileUrl}">
|
||||||
<meta property="og:type" content="website">
|
<meta property="og:type" content="website">
|
||||||
<meta property="og:title" content="${profile.name} on Nostr">
|
<meta property="og:title" content="${profile.name} on Nostr">
|
||||||
@ -231,6 +232,7 @@ function articleMetaHtml(article: Article, profile: Profile) {
|
|||||||
return `
|
return `
|
||||||
<link rel="icon" href="${profile.avatarImageUrl}" type="image/png">
|
<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="alternate" type="application/nostr+json" href="nostr:${article.naddr}" title="This article on Nostr">
|
||||||
|
<link rel="author" type="text/html" href="${profile.profileUrl}" title="${profile.name}">
|
||||||
<link rel="author" type="application/nostr+json" href="nostr:${profile.npub}" title="${profile.name}">
|
<link rel="author" type="application/nostr+json" href="nostr:${profile.npub}" title="${profile.name}">
|
||||||
<meta property="og:url" content="${article.url}">
|
<meta property="og:url" content="${article.url}">
|
||||||
<meta property="og:type" content="website">
|
<meta property="og:type" content="website">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user