Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
urlのミス
Browse files Browse the repository at this point in the history
  • Loading branch information
yuito-it committed May 2, 2024
1 parent c1caeb4 commit 4c457f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions public/maps.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://unipro-tech.github.io/posts/00001</loc>
<loc>https://uniproject-tech.net/posts/00001</loc>
<lastmod>2023-12-26T14:35:07.322Z</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://unipro-tech.github.io/posts/00002</loc>
<loc>https://uniproject-tech.net/posts/00002</loc>
<lastmod>2023-12-29T20:37:20.322Z</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://unipro-tech.github.io/</loc>
<loc>https://uniproject-tech.net/</loc>
<lastmod>2023-12-29T20:37:20.322Z</lastmod>
<priority>1.0</priority>
</url>
Expand Down
4 changes: 2 additions & 2 deletions scripts/generate-sitemap.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ const generateSitemapXml = (posts) => {

posts.forEach((post) => {
const url = root.ele("url");
url.ele("loc", `https://unipro-tech.github.io/posts/${post.slug}`);
url.ele("loc", `https://uniproject-tech.net/posts/${post.slug}`);
url.ele("lastmod", post.date);
url.ele("changefreq", "monthly");
url.ele("priority", "0.8");
});

let url = root.ele("url");
url.ele("loc", `https://unipro-tech.github.io/`);
url.ele("loc", `https://uniproject-tech.net/`);
url.ele("lastmod", posts[posts.length - 1].date);
url.ele("priority", "1.0");

Expand Down

0 comments on commit 4c457f8

Please sign in to comment.