Remove team page

This commit is contained in:
Dennis Reimann
2023-08-22 11:57:36 +02:00
parent bfc6c8d0ec
commit 04bac760b8
22 changed files with 193 additions and 163 deletions

View File

@@ -36,9 +36,8 @@ const truncate = (str, wordCount) => {
return [head, tail]
}
const nostrUrl = pubkey => pubkey
? `https://snort.social/p/${pubkey}`
: null
const memberUrl = member =>
member.url || member.nostr ? `https://snort.social/p/${member.nostr}` : `https://twitter.com/${member.twitter}`
module.exports = {
markdown: mdTransformer.render,
@@ -46,5 +45,5 @@ module.exports = {
slugify,
stripHTML,
truncate,
nostrUrl
memberUrl
}