mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig.space.git
synced 2025-12-13 16:26:50 +00:00
purple wave (#176)
added nostrtalk category, augmented Einundzwanzig CSS
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
"Sei kein Vollknoten, komm in die Gruppe!",
|
||||
"Einfach mal Ludwig von Mises lesen - Zentralbanker hassen diesen Trick!",
|
||||
"Markus ist bester Mann des Monats",
|
||||
"Bullisher Lightning Löwe entlaufen!",
|
||||
"Heute ist ein guter Tag um Sats zu stapeln",
|
||||
"Besseres Geld, bessere Welt",
|
||||
"Inflation ist eine versteckte Steuer",
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
--color-accent-highlight: #dd7901;
|
||||
--color-derweg: #00B4CF;
|
||||
--color-special: #151515;
|
||||
--color-nostrtalk: #A915FF;
|
||||
--color-secondary: var(--color-neutral-50);
|
||||
|
||||
--space-xs: .125rem;
|
||||
|
||||
@@ -72,6 +72,10 @@
|
||||
& .interview {
|
||||
background: var(--color-interview);
|
||||
}
|
||||
|
||||
& .nostrtalk {
|
||||
background: var(--color-nostrtalk);
|
||||
}
|
||||
}
|
||||
|
||||
& .telegram {
|
||||
|
||||
@@ -22,6 +22,9 @@
|
||||
&.der-weg {
|
||||
--category-accent-bg : var(--color-derweg);
|
||||
}
|
||||
&.nostrtalk {
|
||||
--category-accent-bg : var(--color-nostrtalk);
|
||||
}
|
||||
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
|
||||
@@ -16,6 +16,7 @@ mixin categories(current)
|
||||
li: a(href="/podcast/lesestunde/" class=(current === 'Lesestunde' && 'current')).lesestunde Lesestunde
|
||||
li: a(href="/podcast/der-weg/" class=(current === 'Der Weg' && 'current')).der-weg Der Weg
|
||||
li: a(href="/podcast/on-tour/" class=(current === 'On Tour' && 'current')).on-tour On Tour
|
||||
li: a(href="/podcast/nostrtalk/" class=(current === 'NostrTalk' && 'current')).nostrtalk NostrTalk
|
||||
li: a(href="/podcast/verschiedenes/" class=(current === 'Verschiedenes' && 'current')).verschiedenes Verschiedenes
|
||||
|
||||
mixin map(id, markers)
|
||||
|
||||
@@ -27,6 +27,7 @@ html(lang="de")
|
||||
a(href="/meetups/" class=(navCurrent === 'meetups' && 'current')) Meetups
|
||||
a(href="https://portal.einundzwanzig.space/de/event/overview?l=de" rel="nofollow noopener") Events
|
||||
a(href="https://portal.einundzwanzig.space/" rel="nofollow noopener") Portal
|
||||
a(href="https://nostrnests.com/9noscz/" rel="nofollow noopener") Nostrnest
|
||||
a(href="/telegram/" class=(navCurrent === 'telegram' && 'current')) Telegram
|
||||
a(href="/shops/" class=(navCurrent === 'shops' && 'current')) Shops
|
||||
a(href=site.meta.youtubeUrl target="_blank" rel="nofollow noopener") YouTube
|
||||
|
||||
@@ -91,6 +91,7 @@ block main
|
||||
ul.colors
|
||||
li.orange #F7931A
|
||||
li.derweg #00B4CF
|
||||
li.nostrtalk #A915FF
|
||||
li.interview #151515
|
||||
|
||||
article
|
||||
|
||||
@@ -52,7 +52,7 @@ const parseEpisode = e => {
|
||||
if (categoryName === 'On-Tour') categoryName = 'On Tour'
|
||||
if (categoryName === 'Buchclub') categoryName = 'Lesestunde'
|
||||
if (categoryName === 'reCATion') categoryName = 'Verschiedenes'
|
||||
if (categoryName === 'NostrTalk') categoryName = 'Verschiedenes'
|
||||
if (categoryName === 'NostrTalk') categoryName = 'NostrTalk'
|
||||
const firstLine = description.split('\n')[0]
|
||||
const blockMatch = firstLine.match(/Blockzeit\s(\d+)/)
|
||||
const block = blockMatch ? parseInt(blockMatch[1]) : null
|
||||
@@ -60,7 +60,7 @@ const parseEpisode = e => {
|
||||
const slug = slugify(`${categoryName} ${number || ''} ${titlePlain}`)
|
||||
const date = new Date(e.pubDate)
|
||||
const img = e['itunes:image'].__attr.href
|
||||
const image = ['interview', 'lesestunde', 'on-tour', 'verschiedenes'].includes(category)
|
||||
const image = ['interview', 'lesestunde', 'on-tour', 'nostrtalk', 'verschiedenes'].includes(category)
|
||||
? img
|
||||
: `/img/cover/${category}.png`
|
||||
const duration = e['itunes:duration']
|
||||
|
||||
@@ -18,6 +18,7 @@ const categories = {
|
||||
'lesestunde': 'Lesestunde',
|
||||
'der-weg': 'Der Weg',
|
||||
'on-tour': 'On Tour',
|
||||
'nostrtalk': 'NostrTalk',
|
||||
'verschiedenes': 'Verschiedenes'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user