purple wave (#176)

added nostrtalk category, augmented Einundzwanzig CSS
This commit is contained in:
quillie ⚡️
2023-12-15 07:54:02 +01:00
committed by GitHub
parent 3c5a788663
commit a498c90c03
9 changed files with 15 additions and 2 deletions

View File

@@ -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']