From f8bfde5d9c1834ec191a183f66640c346e093d52 Mon Sep 17 00:00:00 2001 From: Derek Slenk Date: Fri, 27 Jun 2025 01:04:26 +0000 Subject: [PATCH] Please do add links TO the homepage and gallery FROM the dadvocate page, --- src/app/dadvocate/page.tsx | 14 +++++++++----- src/app/robots.txt | 5 +++++ src/app/sitemap.ts | 30 ++++++++++++++++++++++++++++++ 3 files changed, 44 insertions(+), 5 deletions(-) create mode 100644 src/app/robots.txt create mode 100644 src/app/sitemap.ts diff --git a/src/app/dadvocate/page.tsx b/src/app/dadvocate/page.tsx index 4fffa9a..421ced6 100644 --- a/src/app/dadvocate/page.tsx +++ b/src/app/dadvocate/page.tsx @@ -7,10 +7,6 @@ import { ExternalLink } from 'lucide-react'; export const metadata: Metadata = { title: "Dadvocate Vids - A curated collection of videos from The Dadvocate", description: "A curated collection of videos from The Dadvocate.", - robots: { - index: false, - follow: false, - } }; interface Video { @@ -23,9 +19,9 @@ const videoIds = [ 'dbPXoZ_cri8', 'y2SfYffLZQ4', 'CdJLCln1Kjg', + 'e6rHHtq5K1k', 'GbWJfWhkOhc', 'pzefTg9jygs', - 'e6rHHtq5K1k', 'zp3PRgtBOl0', 'XZA6c5Gg7NA' ]; @@ -120,6 +116,14 @@ export default async function DadvocatePage() {

Could not load videos. Please try again later.

)} +
+ + +
diff --git a/src/app/robots.txt b/src/app/robots.txt new file mode 100644 index 0000000..5c39d96 --- /dev/null +++ b/src/app/robots.txt @@ -0,0 +1,5 @@ +# https://www.robotstxt.org/robotstxt.html +User-agent: * +Allow: / + +Sitemap: https://cheatingchelsea.com/sitemap.xml diff --git a/src/app/sitemap.ts b/src/app/sitemap.ts new file mode 100644 index 0000000..23d8ca8 --- /dev/null +++ b/src/app/sitemap.ts @@ -0,0 +1,30 @@ +import { MetadataRoute } from 'next' + +export default function sitemap(): MetadataRoute.Sitemap { + return [ + { + url: 'https://cheatingchelsea.com', + lastModified: new Date(), + changeFrequency: 'weekly', + priority: 1, + }, + { + url: 'https://cheatingchelsea.com/gallery', + lastModified: new Date(), + changeFrequency: 'weekly', + priority: 0.8, + }, + { + url: 'https://cheatingchelsea.com/dadvocate', + lastModified: new Date(), + changeFrequency: 'weekly', + priority: 0.8, + }, + { + url: 'https://cheatingchelsea.com/long-story', + lastModified: new Date(), + changeFrequency: 'monthly', + priority: 0.5, + }, + ] +}