diff --git a/pages/index.js b/pages/index.js index 7d0280f..6e22f86 100755 --- a/pages/index.js +++ b/pages/index.js @@ -4,6 +4,7 @@ import Link from 'next/link' import getConfig from 'next/config' import Head from 'next/head' import Image from 'next/image'; +import config from '../data/internal/config'; import { FEEDS, getFeed } from "../lib/rss" import { generatePodcastFeeds, generateRssFeed } from "../data/internal/feed-generator" import { generateSitemap } from "../data/internal/sitemap-generator" @@ -45,13 +46,9 @@ export async function getStaticProps(context) { const firstimage = flickrdata.items[0] const pagedata = {'title': 'Angry Beanie'} - - // const tadfeed = FEEDS.find((tadfeed) => tadfeed.name === "tad"); - // const tadfullfeed = await getFeed(tadfeed.url) - // const tadfirstitem = tadfullfeed.items[0] return { - props: { article, pagedata, config: serverRuntimeConfig, firstimage, episodedata: epdata}, + props: { article, pagedata, config: serverRuntimeConfig, firstimage, episodedata: epdata, siteConfig: config}, revalidate: 60 // will be passed to the page component as props } } @@ -89,8 +86,9 @@ function HomePage (props) {
+ {/* {episode.show} */}