+}
\ No newline at end of file
diff --git a/pages/500.js b/pages/500.js
new file mode 100644
index 0000000..79519a6
--- /dev/null
+++ b/pages/500.js
@@ -0,0 +1,3 @@
+export default function Custom500() {
+ return
500 - Server-side error occurred
+}
diff --git a/pages/galleryimages/[galleryImage].js b/pages/galleryimages/[galleryImage].js
index 5b9d8c2..e8f97ae 100755
--- a/pages/galleryimages/[galleryImage].js
+++ b/pages/galleryimages/[galleryImage].js
@@ -1,5 +1,5 @@
import Head from "next/head";
-import Image from "next/image";
+import Image from "next/legacy/image";
import getConfig from 'next/config'
import "../../components/main.js"
import Layout from "../../components/main.js"
@@ -28,7 +28,7 @@ const galleryImage = ({pagedata, imageDetails, basepath, config} ) => {
diff --git a/pages/index_old.js b/pages/index_old.js
new file mode 100644
index 0000000..91c3f14
--- /dev/null
+++ b/pages/index_old.js
@@ -0,0 +1,138 @@
+import Layout from "../components/main"
+import LatestEpisodes from "../components/latestepisodes"
+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"
+import { getLatestPodcastEpisode } from "../data/external/cms"
+import { getLatestGalleryImage } from "../data/external/cms"
+
+export async function getStaticProps(context) {
+ generateRssFeed()
+ generateRssFeed('tech-and-disability')
+ generatePodcastFeeds()
+ generateSitemap()
+ const { serverRuntimeConfig } = getConfig()
+
+ const qs = require('qs')
+ const query = qs.stringify({
+ pagination: {
+ limit: 1
+ },
+ populate: {
+ FeatureImage: '*'
+ },
+ sort: ['publishedAt:desc'],
+ }, {
+ encodeValuesOnly: true,
+ })
+
+ const res = await fetch(serverRuntimeConfig.base_path +`articles?${query}`, {
+ headers: new Headers({
+ 'Authorization': serverRuntimeConfig.strapi_token,
+ 'Content-Type': 'application/x-www-form-urlencoded'
+ })
+ })
+ const artdata = await res.json()
+
+ const article = artdata.data[0].attributes
+
+ const epdata = await getLatestPodcastEpisode()
+
+ const firstimage = await getLatestGalleryImage()
+
+ const pagedata = {'title': 'Angry Beanie'}
+
+ return {
+ props: { article, pagedata, config: serverRuntimeConfig, firstimage, episodedata: epdata, siteConfig: config},
+ revalidate: 60 // will be passed to the page component as props
+ }
+}
+
+function HomePage (props) {
+ return (
+
+ );
+}
+
+export default HomePage
\ No newline at end of file
diff --git a/pages/news/[slug].js b/pages/news/[slug].js
index 53b069c..4b34615 100755
--- a/pages/news/[slug].js
+++ b/pages/news/[slug].js
@@ -6,7 +6,7 @@ import StorySideBar from '../../components/storysidebar.js'
import PublishedInfo from '../../components/publishedinfo.js'
import { getAllPosts, getSinglePost } from '../../data/external/cms'
import * as gtag from "../../lib/gtag"
-import Image from 'next/image';
+import Image from "next/legacy/image";
import Head from 'next/head'
import config from "../../data/internal/config"
diff --git a/pages/podcasts.js b/pages/podcasts.js
index 1f8a19b..704442b 100755
--- a/pages/podcasts.js
+++ b/pages/podcasts.js
@@ -2,7 +2,7 @@ import "../components/main.js"
import Layout from "../components/main.js"
import Link from 'next/link'
import getConfig from 'next/config'
-import Image from 'next/image';
+import Image from "next/legacy/image";
import { getPodcastList } from "../data/external/cms.js";
export async function getServerSideProps(context) {