Skip to content

Commit

Permalink
Adding sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
EPAM\Sanket_Joshi committed Oct 5, 2024
1 parent e762fbc commit 934cac8
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 14 deletions.
2 changes: 1 addition & 1 deletion components/ui/Business/Post/RecentPosts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function RecentPosts({ list }: Props) {
return (
<section className="mt-10">
<div>
<h1 className="text-xl font-bold">{t("recentPosts")}</h1>
<h2 className="text-xl font-bold">{t("recentPosts")}</h2>
<MarkdownList redirectBase={"posts"} metaList={list}></MarkdownList>
<Link href="/posts" className="hover: text-foreground">
<span className="text-sm text-blue-400">{t("seeMore")}</span>
Expand Down
6 changes: 3 additions & 3 deletions components/ui/Business/SkillMetric.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ const SkillRating = (props: { level: number }) => {
function SkillMetric() {
const { t } = useTranslation("home");
return (
<section className="mt-10">
<h1 className="title text-xl no-underline font-bold">
<section className="mt-5">
<h2 className="title text-xl no-underline font-bold">
{t("techAndSkills")}
</h1>
</h2>
<div className="flex justify-between">
<div>
{SkillMetricMap.map((item) => (
Expand Down
2 changes: 1 addition & 1 deletion next-seo.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const nextSeoConfig = {
},
],
twitter: {
handle: '@sanketjoshi',
handle: '@sanket84808866',
site: '@techsanket',
cardType: 'summary_large_image',
},
Expand Down
10 changes: 4 additions & 6 deletions next-sitemap.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
const config = {
siteUrl: 'https://www.techsanket.in',
generateRobotsTxt: true,
sitemapSize: 7000,
module.exports = {
siteUrl: 'https://www.techsanket.in', // Base URL of your site
generateRobotsTxt: true, // Automatically generate robots.txt file
sitemapSize: 7000, // Number of URLs per sitemap file
};

export default config;
12 changes: 9 additions & 3 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
User-agent: *
Allow: /
Sitemap: https://www.techsanket.in/sitemap.xml
# *
User-agent: *
Allow: /

# Host
Host: https://www.techsanket.in

# Sitemaps
Sitemap: https://www.techsanket.in/sitemap.xml
5 changes: 5 additions & 0 deletions public/sitemap-0.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?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.techsanket.in</loc><lastmod>2024-10-05T11:41:40.662Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://www.techsanket.in/posts</loc><lastmod>2024-10-05T11:41:40.665Z</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://www.techsanket.in/sitemap-0.xml</loc></sitemap>
</sitemapindex>

0 comments on commit 934cac8

Please sign in to comment.