mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig.space.git
synced 2025-12-14 00:36:48 +00:00
Add crew to team page (#2)
* Add crew to team page * Add links for crew * Update texts
This commit is contained in:
@@ -2,6 +2,27 @@ mixin sprite(id)
|
||||
svg(role="img" title=id)&attributes(attributes)
|
||||
use(xlink:href=`${assetPath("/img/sprite.svg")}#${id}`)
|
||||
|
||||
mixin member(m)
|
||||
li.member
|
||||
img(src=assetPath(m.image) alt=m.name loading="lazy")
|
||||
header
|
||||
h2=m.name
|
||||
.links
|
||||
if m.mastodon
|
||||
a(href=(m.mastodon) target="_blank" 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`)
|
||||
+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`)
|
||||
+sprite("github")
|
||||
if m.url
|
||||
a(href=m.url target="_blank")
|
||||
+sprite("url")
|
||||
if m.text
|
||||
!=markdown(m.text)
|
||||
|
||||
mixin episodeItem(e)
|
||||
article.episodeItem&attributes(attributes)
|
||||
a.plain(href=`/podcast/${e.slug}/`)
|
||||
|
||||
24
src/team.pug
24
src/team.pug
@@ -10,21 +10,9 @@ block main
|
||||
h1= title
|
||||
ul.members(data-shuffle)
|
||||
each m in shuffle(team)
|
||||
li.member
|
||||
img(src=assetPath(m.image) alt=m.name loading="lazy")
|
||||
header
|
||||
h2=m.name
|
||||
.links
|
||||
if m.mastodon
|
||||
a(href=(m.mastodon) target="_blank" 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`)
|
||||
+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`)
|
||||
+sprite("github")
|
||||
if m.url
|
||||
a(href=m.url target="_blank")
|
||||
+sprite("url")
|
||||
!=markdown(m.text)
|
||||
+member(m)
|
||||
section
|
||||
h2 Crew
|
||||
ul.members(data-shuffle)
|
||||
each m in shuffle(crew)
|
||||
+member(m)
|
||||
|
||||
Reference in New Issue
Block a user