mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig.space.git
synced 2025-12-14 00:36:48 +00:00
🛠 Podcast and Team pages
This commit is contained in:
24
src/includes/mixins.pug
Normal file
24
src/includes/mixins.pug
Normal file
@@ -0,0 +1,24 @@
|
||||
mixin sprite(id)
|
||||
svg(role="img" title=id)&attributes(attributes)
|
||||
use(xlink:href=`${assetPath("/img/sprite.svg")}#${id}`)
|
||||
|
||||
mixin episodeItem(e)
|
||||
article.episodeItem&attributes(attributes)
|
||||
a.plain(href=e.anchor)
|
||||
.media
|
||||
img(src=e.image alt=e.title loading="lazy")
|
||||
.content
|
||||
.meta
|
||||
span= e.categoryName + (e.number ? ` #${e.number}` : '')
|
||||
time(datetime=e.date)= e.block || formatDate(e.date)
|
||||
h3=e.titlePlain
|
||||
|
||||
mixin episodeDetails(e)
|
||||
article.episodeDetails&attributes(attributes)
|
||||
.media
|
||||
a(href=e.anchor)
|
||||
img(src=e.image alt=e.title loading="lazy")
|
||||
.content
|
||||
h3: a(href=e.anchor)=e.title
|
||||
p=formatDate(e.date)
|
||||
!=e.content
|
||||
Reference in New Issue
Block a user