Add crew to team page (#2)

* Add crew to team page

* Add links for crew

* Update texts
This commit is contained in:
d11n
2021-08-16 21:32:03 +02:00
committed by GitHub
parent 1a0be8cb4d
commit a06f946cf4
12 changed files with 79 additions and 19 deletions

View File

@@ -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 crew = require('../content/crew.json')
const soundboard = require('../content/soundboard.json')
const renderPage = (template, out, data = {}) => {
@@ -22,7 +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('team', 'team', { navCurrent: 'team', team, crew })
renderPage('soundboard', 'soundboard', { navCurrent: 'soundboard', soundboard })
renderPage('category', 'podcast/news', { navCurrent: 'podcast', category: 'news', categoryName: 'News', episodes: episodes.filter(e => e.category === 'news') })