From 23c9584cfe970d499e25652ee4dcb8ad453c4e8d Mon Sep 17 00:00:00 2001 From: James Purser Date: Mon, 7 Oct 2024 15:56:54 +1100 Subject: [PATCH] Quick fix to remove podcast and image foo from front page --- data/internal/feed-generator.js | 2 +- pages/index.js | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/data/internal/feed-generator.js b/data/internal/feed-generator.js index 043b70c..b814d45 100755 --- a/data/internal/feed-generator.js +++ b/data/internal/feed-generator.js @@ -190,7 +190,7 @@ export const generatePodcastFeeds = async () => { type: episode.attributes.Subtitles.data.attributes.mime, language: "en" } - console.log(subtitles) + //console.log(subtitles) } const url = `${siteURL}/podcasts/shows/${series.attributes.Slug}/${episode.attributes.Slug}`; diff --git a/pages/index.js b/pages/index.js index 24f446e..49d38e1 100755 --- a/pages/index.js +++ b/pages/index.js @@ -39,16 +39,12 @@ export async function getStaticProps(context) { const article = artdata.data[0].attributes - const epdata = await getLatestPodcastEpisode() - - const firstimage = await getLatestGalleryImage() - const pagedata = {'title': 'Angry Beanie'} const combined = getLatestContent() return { - props: { article, pagedata, config: serverRuntimeConfig, firstimage, episodedata: epdata, siteConfig: config}, + props: { article, pagedata, config: serverRuntimeConfig, siteConfig: config}, revalidate: 60 // will be passed to the page component as props } }