mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig.space.git
synced 2025-12-13 16:26:50 +00:00
Add soundboard
This commit is contained in:
@@ -6,6 +6,7 @@ const config = require('../pug.config')
|
||||
const site = require('../generated/site-data.json')
|
||||
const episodes = require('../generated/episodes.json')
|
||||
const team = require('../content/team.json')
|
||||
const soundboard = require('../content/soundboard.json')
|
||||
|
||||
const renderPage = (template, out, data = {}) => {
|
||||
const file = resolve(__dirname, '..', `src/${template}.pug`)
|
||||
@@ -22,6 +23,7 @@ const renderPage = (template, out, data = {}) => {
|
||||
renderPage('index', 'index', { navCurrent: 'index', currentEpisode: episodes[0] })
|
||||
renderPage('podcast', 'podcast', { navCurrent: 'podcast', episodes: [...episodes] })
|
||||
renderPage('team', 'team', { navCurrent: 'team', team })
|
||||
renderPage('soundboard', 'soundboard', { navCurrent: 'soundboard', soundboard })
|
||||
|
||||
renderPage('category', 'podcast/news', { navCurrent: 'podcast', category: 'news', categoryName: 'News', episodes: episodes.filter(e => e.category === 'news') })
|
||||
renderPage('category', 'podcast/interviews', { navCurrent: 'podcast', category: 'interview', categoryName: 'Interviews', episodes: episodes.filter(e => e.category === 'interview') })
|
||||
|
||||
Reference in New Issue
Block a user