Skip to content

Commit

Permalink
Add internationalization info to sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
kulgg committed Jun 11, 2023
1 parent 8802e2f commit 4d8c0cd
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 27 deletions.
5 changes: 5 additions & 0 deletions app/[lang]/history/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ import { getDictionary } from "@/get-dictionary";
import { Locale } from "@/i18n-config";
import Chart from "./Chart";
import History from "./History";
import { Metadata } from "next";

export const metadata: Metadata = {
title: "History",
};

export default async function App({ params }: { params: { lang: Locale } }) {
const dictionary = await getDictionary(params.lang);
Expand Down
27 changes: 0 additions & 27 deletions app/sitemap.ts

This file was deleted.

94 changes: 94 additions & 0 deletions app/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>https://bodyfat.io</loc>
<xhtml:link
rel="alternate"
hreflang="x-default"
href="https://bodyfat.io"/>
<xhtml:link
rel="alternate"
hreflang="de"
href="https://bodyfat.io/de"/>
<xhtml:link
rel="alternate"
hreflang="en"
href="https://bodyfat.io/en"/>
</url>
<url>
<loc>https://bodyfat.io/de</loc>
<xhtml:link
rel="alternate"
hreflang="x-default"
href="https://bodyfat.io"/>
<xhtml:link
rel="alternate"
hreflang="de"
href="https://bodyfat.io/de"/>
<xhtml:link
rel="alternate"
hreflang="en"
href="https://bodyfat.io/en"/>
</url>
<url>
<loc>https://bodyfat.io/en</loc>
<xhtml:link
rel="alternate"
hreflang="x-default"
href="https://bodyfat.io"/>
<xhtml:link
rel="alternate"
hreflang="de"
href="https://bodyfat.io/de"/>
<xhtml:link
rel="alternate"
hreflang="en"
href="https://bodyfat.io/en"/>
</url>
<url>
<loc>https://bodyfat.io/history</loc>
<xhtml:link
rel="alternate"
hreflang="x-default"
href="https://bodyfat.io/history"/>
<xhtml:link
rel="alternate"
hreflang="de"
href="https://bodyfat.io/de/history"/>
<xhtml:link
rel="alternate"
hreflang="en"
href="https://bodyfat.io/en/history"/>
</url>
<url>
<loc>https://bodyfat.io/de/history</loc>
<xhtml:link
rel="alternate"
hreflang="x-default"
href="https://bodyfat.io/history"/>
<xhtml:link
rel="alternate"
hreflang="de"
href="https://bodyfat.io/de/history"/>
<xhtml:link
rel="alternate"
hreflang="en"
href="https://bodyfat.io/en/history"/>
</url>
<url>
<loc>https://bodyfat.io/en/history</loc>
<xhtml:link
rel="alternate"
hreflang="x-default"
href="https://bodyfat.io/history"/>
<xhtml:link
rel="alternate"
hreflang="de"
href="https://bodyfat.io/de/history"/>
<xhtml:link
rel="alternate"
hreflang="en"
href="https://bodyfat.io/en/history"/>
</url>
</urlset>

0 comments on commit 4d8c0cd

Please sign in to comment.