Skip to content

Commit

Permalink
feat: add sitemap.xml and robots.txt from build
Browse files Browse the repository at this point in the history
  • Loading branch information
arrofirezasatria committed Nov 17, 2022
1 parent 39b7085 commit 545d133
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
9 changes: 9 additions & 0 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# *
User-agent: *
Allow: /

# Host
Host: https://example.com

# Sitemaps
Sitemap: https://example.com/sitemap.xml
14 changes: 14 additions & 0 deletions public/sitemap-0.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?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:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" 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://example.com/blog/</loc><lastmod>2022-11-17T15:55:06.777Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://example.com/blog/blog-0/</loc><lastmod>2022-11-17T15:55:06.777Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://example.com/blog/blog-1/</loc><lastmod>2022-11-17T15:55:06.777Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://example.com/blog/blog-2/</loc><lastmod>2022-11-17T15:55:06.777Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://example.com/blog/blog-3/</loc><lastmod>2022-11-17T15:55:06.777Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://example.com/blog/blog-4/</loc><lastmod>2022-11-17T15:55:06.777Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://example.com/blog/blog-5/</loc><lastmod>2022-11-17T15:55:06.777Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://example.com/blog/blog-6/</loc><lastmod>2022-11-17T15:55:06.777Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://example.com/blog/blog-7/</loc><lastmod>2022-11-17T15:55:06.777Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://example.com/blog/blog-8/</loc><lastmod>2022-11-17T15:55:06.777Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://example.com/blog/blog-9/</loc><lastmod>2022-11-17T15:55:06.777Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
</urlset>
4 changes: 4 additions & 0 deletions public/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap><loc>https://example.com/sitemap-0.xml</loc></sitemap>
</sitemapindex>

0 comments on commit 545d133

Please sign in to comment.