Skip to content

Commit

Permalink
Merge pull request #22 from dardotjs/website-core-update
Browse files Browse the repository at this point in the history
add sitemap, robot.txt and fixed link
  • Loading branch information
alphaolomi authored Oct 16, 2023
2 parents 7a13594 + 3448ee0 commit 40d5e1e
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/app/robots.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { MetadataRoute } from 'next'

export default function robots(): MetadataRoute.Robots {
return {
rules: {
userAgent: '*',
allow: '/',
},
}
}
30 changes: 30 additions & 0 deletions src/app/sitemap.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { MetadataRoute } from "next";

export default function sitemap(): MetadataRoute.Sitemap {
return [
{
url: "https://darjs.org/",
lastModified: new Date(),
changeFrequency: "monthly",
priority: 1,
},
{
url: "https://darjs.org/about",
lastModified: new Date(),
changeFrequency: "monthly",
priority: 0.8,
},
{
url: "https://darjs.org/meetups",
lastModified: new Date(),
changeFrequency: "weekly",
priority: 0.5,
},
{
url: "https://darjs.org/contact",
lastModified: new Date(),
changeFrequency: "weekly",
priority: 0.5,
},
];
}
2 changes: 1 addition & 1 deletion src/components/templates/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Banner = () => (
title={<>DarJS is dedicated to providing the Javascript community a place to learn, socialize, and talk.</>}
subtitle={"We are a group of developers who are passionate about JavaScript and the tech industry."}
button={(
<Link href="/meetup">
<Link href="/meetups">
<>
<Button primary md>Join Next Meetup</Button>
</>
Expand Down

0 comments on commit 40d5e1e

Please sign in to comment.