Various improvements

This commit is contained in:
Dennis Reimann
2021-08-19 16:28:11 +02:00
parent 6a15f7377d
commit 1b75ccf4fa
6 changed files with 35 additions and 26 deletions

View File

@@ -9,16 +9,16 @@ mixin member(m)
h2=m.name
.links
if m.mastodon
a(href=(m.mastodon) target="_blank" title=`${m.name} on Mastodon`)
a(href=(m.mastodon) target="_blank" rel="nofollow noopener" title=`${m.name} on Mastodon`)
+sprite("mastodon")
if m.twitter
a(href=(m.twitter.startsWith('https://') ? m.twitter : `https://twitter.com/${m.twitter}`) target="_blank" title=`${m.name} on Twitter`)
a(href=(m.twitter.startsWith('https://') ? m.twitter : `https://twitter.com/${m.twitter}`) target="_blank" rel="nofollow noopener" title=`${m.name} on Twitter`)
+sprite("twitter")
if m.github
a(href=(m.github.startsWith('https://') ? m.github : `https://github.com/${m.github}`) target="_blank" title=`${m.name} on GitHub`)
a(href=(m.github.startsWith('https://') ? m.github : `https://github.com/${m.github}`) target="_blank" rel="nofollow noopener" title=`${m.name} on GitHub`)
+sprite("github")
if m.url
a(href=m.url target="_blank")
a(href=m.url target="_blank" rel="nofollow noopener")
+sprite("url")
if m.text
!=markdown(m.text)