Skip to content

Add videos to sitemap - #1209

Merged
maiertech merged 2 commits into
mainfrom
copilot/add-videos-to-sitemap
Mar 28, 2026
Merged

Add videos to sitemap#1209
maiertech merged 2 commits into
mainfrom
copilot/add-videos-to-sitemap

Conversation

Copilot AI commented Mar 28, 2026

Copy link
Copy Markdown
Contributor

/sitemap.xml was omitting the videos collection, including only posts and notes.

Changes

  • src/routes/sitemap.xml/+server.ts: Import sorted from the videos collection and map entries using path + publishedDate, matching the notes pattern. Spread videoEntries into the pages array alongside posts and notes.
const videoEntries = videos.map(
  (video) => `\t<url>
    <loc>${ORIGIN}${video.path}</loc>
    <lastmod>${video.publishedDate}</lastmod>
  </url>`
);

const pages = [...postEntries, ...noteEntries, ...videoEntries];

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI self-assigned this Mar 28, 2026
Copilot AI linked an issue Mar 28, 2026 that may be closed by this pull request
@railway-app

railway-app Bot commented Mar 28, 2026

Copy link
Copy Markdown

🚅 Deployed to the website-pr-1209 environment in maiertech

Service Status Web Updated (UTC)
website ✅ Success (View Logs) Web Mar 28, 2026 at 4:55 pm

@railway-app
railway-app Bot temporarily deployed to maiertech / website-pr-1209 March 28, 2026 16:41 Destroyed
Agent-Logs-Url: https://github.com/maiertech/website/sessions/21daa4a7-1f6b-4530-95e8-50295a6f791c

Co-authored-by: maiertech <1482402+maiertech@users.noreply.github.com>
@railway-app
railway-app Bot temporarily deployed to maiertech / website-pr-1209 March 28, 2026 16:43 Destroyed
Copilot AI changed the title [WIP] Add videos to sitemap for better SEO Add videos to sitemap Mar 28, 2026
Copilot AI requested a review from maiertech March 28, 2026 16:44
@maiertech
maiertech marked this pull request as ready for review March 28, 2026 16:54
@maiertech
maiertech merged commit 17a04b5 into main Mar 28, 2026
2 checks passed
@maiertech
maiertech deleted the copilot/add-videos-to-sitemap branch March 28, 2026 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add videos to sitemap

2 participants