mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig.space.git
synced 2025-12-13 16:26:50 +00:00
Add Nostr links
This commit is contained in:
@@ -36,10 +36,15 @@ const truncate = (str, wordCount) => {
|
||||
return [head, tail]
|
||||
}
|
||||
|
||||
const nostrUrl = pubkey => pubkey
|
||||
? `https://snort.social/p/${pubkey}`
|
||||
: null
|
||||
|
||||
module.exports = {
|
||||
markdown: mdTransformer.render,
|
||||
replacements,
|
||||
slugify,
|
||||
stripHTML,
|
||||
truncate
|
||||
truncate,
|
||||
nostrUrl
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user