-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jarno/feature/84-add-sitemap #370
Open
Rutjake
wants to merge
14
commits into
dev
Choose a base branch
from
jarno/feature/84-add-sitemap
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 10 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
4e4abb5
created sitemap.ts for sitemap.xml generation
Rutjake 8222ed3
Page information added
Rutjake 57761df
Sitemap.xml made manually because the automatic function does not worβ¦
Rutjake c13174a
manually created language-specific sitemap
Rutjake a01855d
sitemap update
Rutjake 47d333d
universal-sitemap update
Rutjake 3d4ba15
added english sitemap.xml and fixed finnish sitemap
Rutjake 410f427
modified robots.txt for sitemaps
Rutjake afb9758
fixed english sitemap.xml
Rutjake 3eb7268
Component story added to Storybook
Rutjake 60305a9
Added envHelper To Avoid Hardcoding
Rutjake 39692e8
Added a domain address to envHelper to make it easier to use in diffeβ¦
Rutjake b76527d
JsDoc Updated
Rutjake 28050f3
Variable name changed to meet requirements
Rutjake File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | ||
<url> | ||
<loc>https://altzone.fi/en</loc> | ||
<lastmod>2025-01-22</lastmod> | ||
<changefreq>always</changefreq> | ||
<priority>1.0</priority> | ||
</url> | ||
<url> | ||
<loc>https://altzone.fi/en/news</loc> | ||
<lastmod>2025-01-22</lastmod> | ||
<changefreq>daily</changefreq> | ||
<priority>0.9</priority> | ||
</url> | ||
<url> | ||
<loc>https://altzone.fi/en/heroes</loc> | ||
<lastmod>2025-01-23</lastmod> | ||
<changefreq>monthly</changefreq> | ||
<priority>0.8</priority> | ||
</url> | ||
<url> | ||
<loc>https://altzone.fi/en/hero-development</loc> | ||
<lastmod>2025-01-22</lastmod> | ||
<changefreq>monthly</changefreq> | ||
<priority>0.5</priority> | ||
</url> | ||
<url> | ||
<loc>https://altzone.fi/en/clans</loc> | ||
<lastmod>2025-01-23</lastmod> | ||
<changefreq>daily</changefreq> | ||
<priority>0.8</priority> | ||
</url> | ||
<url> | ||
<loc>https://altzone.fi/en/picture-galleries</loc> | ||
<lastmod>2025-01-22</lastmod> | ||
<changefreq>monthly</changefreq> | ||
<priority>0.6</priority> | ||
</url> | ||
<url> | ||
<loc>https://altzone.fi/en/comics</loc> | ||
<lastmod>2025-01-22</lastmod> | ||
<changefreq>yearly</changefreq> | ||
<priority>0.4</priority> | ||
</url> | ||
<url> | ||
<loc>https://altzone.fi/en/furniture</loc> | ||
<lastmod>2025-01-22</lastmod> | ||
<changefreq>weekly</changefreq> | ||
<priority>0.8</priority> | ||
</url> | ||
<url> | ||
<loc>https://altzone.fi/en/artGame</loc> | ||
<lastmod>2025-01-22</lastmod> | ||
<changefreq>yearly</changefreq> | ||
<priority>0.3</priority> | ||
</url> | ||
<url> | ||
<loc>https://altzone.fi/en/join-us</loc> | ||
<lastmod>2025-01-22</lastmod> | ||
<changefreq>yearly</changefreq> | ||
<priority>0.3</priority> | ||
</url> | ||
<url> | ||
<loc>https://altzone.fi/en/team</loc> | ||
<lastmod>2025-01-22</lastmod> | ||
<changefreq>weekly</changefreq> | ||
<priority>0.5</priority> | ||
</url> | ||
</urlset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | ||
<url> | ||
<loc>https://altzone.fi/fi</loc> | ||
<lastmod>2025-01-22</lastmod> | ||
<changefreq>always</changefreq> | ||
<priority>1.0</priority> | ||
</url> | ||
<url> | ||
<loc>https://altzone.fi/fi/news</loc> | ||
<lastmod>2025-01-22</lastmod> | ||
<changefreq>daily</changefreq> | ||
<priority>0.9</priority> | ||
</url> | ||
<url> | ||
<loc>https://altzone.fi/fi/heroes</loc> | ||
<lastmod>2025-01-23</lastmod> | ||
<changefreq>monthly</changefreq> | ||
<priority>0.8</priority> | ||
</url> | ||
<url> | ||
<loc>https://altzone.fi/fi/hero-development</loc> | ||
<lastmod>2025-01-22</lastmod> | ||
<changefreq>monthly</changefreq> | ||
<priority>0.5</priority> | ||
</url> | ||
<url> | ||
<loc>https://altzone.fi/fi/clans</loc> | ||
<lastmod>2025-01-23</lastmod> | ||
<changefreq>daily</changefreq> | ||
<priority>0.8</priority> | ||
</url> | ||
<url> | ||
<loc>https://altzone.fi/fi/picture-galleries</loc> | ||
<lastmod>2025-01-22</lastmod> | ||
<changefreq>monthly</changefreq> | ||
<priority>0.6</priority> | ||
</url> | ||
<url> | ||
<loc>https://altzone.fi/fi/comics</loc> | ||
<lastmod>2025-01-22</lastmod> | ||
<changefreq>yearly</changefreq> | ||
<priority>0.4</priority> | ||
</url> | ||
<url> | ||
<loc>https://altzone.fi/fi/furniture</loc> | ||
<lastmod>2025-01-22</lastmod> | ||
<changefreq>weekly</changefreq> | ||
<priority>0.8</priority> | ||
</url> | ||
<url> | ||
<loc>https://altzone.fi/fi/artGame</loc> | ||
<lastmod>2025-01-22</lastmod> | ||
<changefreq>yearly</changefreq> | ||
<priority>0.3</priority> | ||
</url> | ||
<url> | ||
<loc>https://altzone.fi/fi/join-us</loc> | ||
<lastmod>2025-01-22</lastmod> | ||
<changefreq>yearly</changefreq> | ||
<priority>0.3</priority> | ||
</url> | ||
<url> | ||
<loc>https://altzone.fi/fi/team</loc> | ||
<lastmod>2025-01-22</lastmod> | ||
<changefreq>weekly</changefreq> | ||
<priority>0.5</priority> | ||
</url> | ||
</urlset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
User-agent: * | ||
Disallow: | ||
Allow: / | ||
|
||
Sitemap: https://altzone.fi/sitemap.xml | ||
Sitemap: https://altzone.fi/sitemap.xml | ||
Sitemap: https://altzone.fi/fi/sitemap.xml | ||
Sitemap: https://altzone.fi/en/sitemap.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | ||
<url> | ||
<loc>https://altzone.fi</loc> | ||
<lastmod>2025-01-22</lastmod> | ||
<changefreq>always</changefreq> | ||
<priority>1.0</priority> | ||
</url> | ||
<url> | ||
<loc>https://altzone.fi/fi/news</loc> | ||
<lastmod>2025-01-22</lastmod> | ||
<changefreq>daily</changefreq> | ||
<priority>0.9</priority> | ||
</url> | ||
<url> | ||
<loc>https://altzone.fi/fi/heroes</loc> | ||
<lastmod>2025-01-23</lastmod> | ||
<changefreq>monthly</changefreq> | ||
<priority>0.8</priority> | ||
</url> | ||
<url> | ||
<loc>https://altzone.fi/fi/hero-development</loc> | ||
<lastmod>2025-01-22</lastmod> | ||
<changefreq>monthly</changefreq> | ||
<priority>0.5</priority> | ||
</url> | ||
<url> | ||
<loc>https://altzone.fi/fi/clans</loc> | ||
<lastmod>2025-01-23</lastmod> | ||
<changefreq>daily</changefreq> | ||
<priority>0.8</priority> | ||
</url> | ||
<url> | ||
<loc>https://altzone.fi/fi/picture-galleries</loc> | ||
<lastmod>2025-01-22</lastmod> | ||
<changefreq>monthly</changefreq> | ||
<priority>0.6</priority> | ||
</url> | ||
<url> | ||
<loc>https://altzone.fi/fi/comics</loc> | ||
<lastmod>2025-01-22</lastmod> | ||
<changefreq>yearly</changefreq> | ||
<priority>0.4</priority> | ||
</url> | ||
<url> | ||
<loc>https://altzone.fi/fi/furniture</loc> | ||
<lastmod>2025-01-22</lastmod> | ||
<changefreq>weekly</changefreq> | ||
<priority>0.8</priority> | ||
</url> | ||
<url> | ||
<loc>https://altzone.fi/fi/artGame</loc> | ||
<lastmod>2025-01-22</lastmod> | ||
<changefreq>yearly</changefreq> | ||
<priority>0.3</priority> | ||
</url> | ||
<url> | ||
<loc>https://altzone.fi/fi/join-us</loc> | ||
<lastmod>2025-01-22</lastmod> | ||
<changefreq>yearly</changefreq> | ||
<priority>0.3</priority> | ||
</url> | ||
<url> | ||
<loc>https://altzone.fi/fi/team</loc> | ||
<lastmod>2025-01-22</lastmod> | ||
<changefreq>weekly</changefreq> | ||
<priority>0.5</priority> | ||
</url> | ||
</urlset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
import type { MetadataRoute } from 'next'; | ||
|
||
/** | ||
* Generate a sitemap.xml file. | ||
* @returns {MetadataRoute.Sitemap} A Sitemap object that contains page URLs and other information. | ||
* @property {string} url - Page URL. | ||
* @property {'always'|'daily'|'weekly'|'monthly'|'yearly'|'never'} changefreq - Page change frequency. | ||
* @property {number} priority - Page importance (0.0-1.0). | ||
*/ | ||
|
||
export default function sitemap(): MetadataRoute.Sitemap { | ||
return [ | ||
{ | ||
url: 'https://altzone.fi', | ||
lastModified: new Date(), | ||
changeFrequency: 'always', | ||
priority: 1.0, | ||
}, | ||
{ | ||
url: 'https://altzone.fi/fi/news', | ||
lastModified: new Date(), | ||
changeFrequency: 'daily', | ||
priority: 0.9, | ||
}, | ||
{ | ||
url: 'https://altzone.fi/fi/heroes', | ||
lastModified: new Date(), | ||
changeFrequency: 'monthly', | ||
priority: 0.8, | ||
}, | ||
{ | ||
url: 'https://altzone.fi/fi/hero-development', | ||
lastModified: new Date(), | ||
changeFrequency: 'monthly', | ||
priority: 0.5, | ||
}, | ||
{ | ||
url: 'https://altzone.fi/fi/clans', | ||
lastModified: new Date(), | ||
changeFrequency: 'daily', | ||
priority: 0.8, | ||
}, | ||
{ | ||
url: 'https://altzone.fi/fi/picture-galleries', | ||
lastModified: new Date(), | ||
changeFrequency: 'monthly', | ||
priority: 0.6, | ||
}, | ||
{ | ||
url: 'https://altzone.fi/fi/comics', | ||
lastModified: new Date(), | ||
changeFrequency: 'yearly', | ||
priority: 0.4, | ||
}, | ||
{ | ||
url: 'https://altzone.fi/fi/furniture', | ||
lastModified: new Date(), | ||
changeFrequency: 'weekly', | ||
priority: 0.8, | ||
}, | ||
{ | ||
url: 'https://altzone.fi/fi/artGame', | ||
lastModified: new Date(), | ||
changeFrequency: 'yearly', | ||
priority: 0.3, | ||
}, | ||
{ | ||
url: 'https://altzone.fi/fi/join-us', | ||
lastModified: new Date(), | ||
changeFrequency: 'yearly', | ||
priority: 0.3, | ||
}, | ||
{ | ||
url: 'https://altzone.fi/fi/team', | ||
lastModified: new Date(), | ||
changeFrequency: 'weekly', | ||
priority: 0.5, | ||
}, | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React from 'react'; | ||
import sitemap from '../app/sitemap'; | ||
|
||
export default { | ||
title: 'Sitemap', | ||
}; | ||
|
||
export const SitemapStory = () => { | ||
const sitemapData = sitemap(); | ||
|
||
const containerStyle: React.CSSProperties = { | ||
fontFamily: 'monospace', | ||
whiteSpace: 'pre-wrap', | ||
padding: '16px', | ||
backgroundColor: '#ffffff', | ||
color: '#333333', | ||
}; | ||
|
||
return ( | ||
<div style={containerStyle}> | ||
<h2>Sitemap</h2> | ||
<pre>{JSON.stringify(sitemapData, null, 2)}</pre> | ||
</div> | ||
); | ||
}; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use envHelper instead harcoding
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean just the domain or also the subpages?