From 9eb4a330490d4f827a649aee7275ad8e112d78e1 Mon Sep 17 00:00:00 2001 From: fiatjaf_ Date: Sat, 24 May 2025 10:42:34 -0300 Subject: [PATCH] Associating HTML documents to Nostr entities with `` (#1897) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: hodlbod Co-authored-by: Râu Cao <842+raucao@users.noreply.github.com> --- 21.md | 20 +++++++++++++++++++- 84.md | 2 +- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/21.md b/21.md index 988485dd..5f5e5b7e 100644 --- a/21.md +++ b/21.md @@ -12,9 +12,27 @@ The scheme is `nostr:`. The identifiers that come after are expected to be the same as those defined in [NIP-19](19.md) (except `nsec`). -## Examples +#### Examples - `nostr:npub1sn0wdenkukak0d9dfczzeacvhkrgz92ak56egt7vdgzn8pv2wfqqhrjdv9` - `nostr:nprofile1qqsrhuxx8l9ex335q7he0f09aej04zpazpl0ne2cgukyawd24mayt8gpp4mhxue69uhhytnc9e3k7mgpz4mhxue69uhkg6nzv9ejuumpv34kytnrdaksjlyr9p` - `nostr:note1fntxtkcy9pjwucqwa9mddn7v03wwwsu9j330jj350nvhpky2tuaspk6nqc` - `nostr:nevent1qqstna2yrezu5wghjvswqqculvvwxsrcvu7uc0f78gan4xqhvz49d9spr3mhxue69uhkummnw3ez6un9d3shjtn4de6x2argwghx6egpr4mhxue69uhkummnw3ez6ur4vgh8wetvd3hhyer9wghxuet5nxnepm` + +### Linking HTML pages to Nostr entities + +`` tags with `rel="alternate"` can be used to associate webpages to Nostr events, in cases where the same content is served via the two mediums (for example, a web server that exposes Markdown articles both as HTML pages and as `kind:30023' events served under itself as a relay or through some other relay). For example: + +``` + + + +``` + +Likewise, `` tags with `rel="me"` or `rel="author"` can be used to assign authorship of webpages to Nostr profiles. For example: + +``` + + + +``` diff --git a/84.md b/84.md index ee416a59..1094f555 100644 --- a/84.md +++ b/84.md @@ -23,7 +23,7 @@ or obvious non-useful information from the query string. ### Attribution Clients MAY include one or more `p` tags, tagging the original authors of the material being highlighted; this is particularly useful when highlighting non-nostr content for which the client might be able to get a nostr pubkey somehow -(e.g. prompting the user or reading a `` tag on the document). A role MAY be included as the +(e.g. prompting the user or reading a `` tag on the document). A role MAY be included as the last value of the tag. ```jsonc