-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3334813
commit 526c397
Showing
9 changed files
with
537 additions
and
471 deletions.
There are no files selected for viewing
802 changes: 403 additions & 399 deletions
802
dist/assets/index-uBePZDFz.js → dist/assets/index-IUgKibMN.js
Large diffs are not rendered by default.
Oops, something went wrong.
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
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 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"><url><loc>https://josephhansen.dev/</loc><changefreq>daily</changefreq><priority>0.3</priority></url><url><loc>https://josephhansen.dev/pricing</loc><changefreq>daily</changefreq><priority>0.3</priority></url></urlset> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"><url><loc>https://josephhansen.dev/</loc><changefreq>daily</changefreq><priority>0.3</priority></url><url><loc>https://josephhansen.dev/pricing</loc><changefreq>daily</changefreq><priority>0.3</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,21 @@ | ||
import { SitemapStream, streamToPromise } from "sitemap" | ||
import { createWriteStream } from "fs" | ||
import { routePaths } from "./src/routes.js" | ||
|
||
const sitemapStream = new SitemapStream({ | ||
hostname: "https://josephhansen.dev", | ||
}) | ||
|
||
routePaths.forEach((path) => { | ||
sitemapStream.write({ | ||
url: `https://josephhansen.dev${path}`, | ||
changefreq: "daily", | ||
priority: 0.3, | ||
}) | ||
}) | ||
|
||
sitemapStream.end() | ||
|
||
streamToPromise(sitemapStream).then((data) => { | ||
createWriteStream("./public/sitemap.xml").write(data.toString()) | ||
}) |
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
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,8 @@ | ||
const routes = [ | ||
{ path: "/", component: null, props: { component: "home" } }, | ||
{ path: "/pricing", component: null, props: { component: "pricing" } }, | ||
] | ||
|
||
const routePaths = routes.map((route) => route.path) | ||
|
||
export { routes, routePaths } |