Add youtube/twitter rewrite (closes #22)

This commit is contained in:
Cadence Ember
2020-06-22 02:04:15 +12:00
parent a7a9af8854
commit 81b2c77b98
7 changed files with 111 additions and 54 deletions

View File

@@ -54,9 +54,10 @@ html
- const bio = user.getStructuredBio()
if bio
+display_structured(bio)
if user.data.external_url
- const userURL = user.getRewriteLink(settings)
if userURL
p.website
a(href=user.data.external_url)= user.data.external_url
a(href=userURL)= userURL
if user.posts != undefined
div.profile-counter #[span(data-numberformat=user.posts).count #{numberFormat(user.posts)}] posts
if followerCountsAvailable