Skip to content

Commit

Permalink
added:: Meta Tags, robots.txt, sitemaps for SEO Enhancement (#171)
Browse files Browse the repository at this point in the history
* Create robots.txt

* Update robots.txt

* Create sitemap.xml

* Update sitemap.xml

* Update package.json

* Update package-lock.json

* Create metadata.tsx

---------

Co-authored-by: yash ainapure <[email protected]>
  • Loading branch information
myselfshivams and Yash-Ainapure authored Nov 10, 2024
1 parent 250b5a5 commit 57e9467
Show file tree
Hide file tree
Showing 5 changed files with 107 additions and 0 deletions.
71 changes: 71 additions & 0 deletions frontend/package-lock.json

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

2 changes: 2 additions & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@
"radix-ui": "^1.0.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-helmet": "^6.1.0",
"react-icons": "^5.3.0",
"react-router-dom": "^6.26.1",
"react-spinners": "^0.14.1",
"sitemap": "^8.0.0",
"styled-components": "^6.1.13",
"tailwind-merge": "^2.5.2",
"tailwindcss-animate": "^1.0.7",
Expand Down
5 changes: 5 additions & 0 deletions frontend/public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

User-agent: *
Disallow: /private
Allow: /
Sitemap: https://dypcetclubs-live.onrender.com/
1 change: 1 addition & 0 deletions frontend/public/sitemap.xml
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://dypcetclubs-live.onrender.com/</loc><changefreq>daily</changefreq><priority>1.0</priority></url></urlset>
28 changes: 28 additions & 0 deletions frontend/src/metadata.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import React from "react";
import { Helmet } from "react-helmet";

const Metadata: React.FC = () => (
<Helmet>
<title>College Clubs Management | Track Events & Hiring</title>
<meta
name="description"
content="An initiative to manage all college clubs and their hiring process through a user-friendly website."
/>
<meta
name="keywords"
content="College Clubs, Club Management, Events, Hiring, College Website"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta property="og:title" content="College Clubs Management" />
<meta
property="og:description"
content="Track college club events and manage hiring processes through a central platform."
/>
<meta property="og:url" content="https://dypcetclubs-live.onrender.com" />
<meta property="og:type" content="website" />
<meta name="robots" content="index, follow" />
<link rel="icon" href="/favicon.ico" />
</Helmet>
);

export default Metadata;

0 comments on commit 57e9467

Please sign in to comment.