diff --git a/pages/podcasts.js b/pages/podcasts.js index deed731..1f8a19b 100755 --- a/pages/podcasts.js +++ b/pages/podcasts.js @@ -11,8 +11,6 @@ export async function getServerSideProps(context) { const secdata = await secres.json() const currpodcastlist = await getPodcastList(true) - - console.log(currpodcastlist.data[0].attributes.Logo.data.attributes.formats) const archpodcastlist = await getPodcastList(false) @@ -25,7 +23,9 @@ export async function getServerSideProps(context) { } } -const Podcasts = ({sections, currpodcastlist, archpodcastlist, episodedata, pagedata, serverRuntimeConfig}) => ( +const Podcasts = ({sections, currpodcastlist, archpodcastlist, episodedata, pagedata, serverRuntimeConfig}) => { + + return (

Podcasts

Over the years I have made a number of podcasts.

@@ -45,7 +45,8 @@ const Podcasts = ({sections, currpodcastlist, archpodcastlist, episodedata, page

Archived Podcasts

- {archpodcastlist.map((podcast) => ( + {archpodcastlist.length > 0 && + archpodcastlist.map((podcast) => (
- -) + ) +} export default Podcasts \ No newline at end of file diff --git a/pages/podcasts/shows/[...episode].js b/pages/podcasts/shows/[...episode].js index e9eeff2..205f184 100755 --- a/pages/podcasts/shows/[...episode].js +++ b/pages/podcasts/shows/[...episode].js @@ -50,8 +50,8 @@ const Episode = ( props ) => { -

{props.episode.data[0].attributes.Title}

+

{props.episode.data[0].attributes.Title}

gtag.event({action: "play", category:"audio", label: "audio started", value: props.audiodata.audio_mp3})}