Skip to content

Commit

Permalink
sitemap added
Browse files Browse the repository at this point in the history
  • Loading branch information
alpozkanm committed Sep 12, 2023
1 parent 7062909 commit 8b5b34c
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
public-hoist-pattern[]=@types/*
auto-install-peers=true
auto-install-peers=true
enable-pre-post-scripts=true
9 changes: 9 additions & 0 deletions next-sitemap.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/** @type {import('next-sitemap').IConfig} */
module.exports = {
siteUrl: process.env.NEXT_PUBLIC_SITE_URL_PROD || 'https://www.alpozkan.info',
generateRobotsTxt: true, // (optional)
output: 'public',
exclude: ['/posts'],
generateIndexSitemap: false,
// ...other options
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"postbuild": "next-sitemap",
"start": "next start",
"lint": "next lint",
"typecheck": "tsc --noEmit",
Expand All @@ -26,6 +27,7 @@
"next": "13.3.2",
"next-contentlayer": "^0.3.4",
"next-seo": "^6.1.0",
"next-sitemap": "^4.2.3",
"query-string": "^8.1.0",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand Down
25 changes: 25 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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://www.alpozkanm.info

# Sitemaps
Sitemap: https://www.alpozkanm.info/sitemap.xml
7 changes: 7 additions & 0 deletions public/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?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://www.alpozkanm.info/blog</loc><lastmod>2023-09-12T23:22:51.379Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://www.alpozkanm.info</loc><lastmod>2023-09-12T23:22:51.379Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://www.alpozkanm.info/contact</loc><lastmod>2023-09-12T23:22:51.379Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://www.alpozkanm.info/projects</loc><lastmod>2023-09-12T23:22:51.379Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
</urlset>

0 comments on commit 8b5b34c

Please sign in to comment.