Skip to content

Commit

Permalink
Increase SEO perf w/robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
rrcoder0167 authored Mar 13, 2024
1 parent 0e1e8aa commit f22f157
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 4 deletions.
6 changes: 4 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import { defineConfig } from 'astro/config';
import tailwind from "@astrojs/tailwind";
import icon from "astro-icon";

import react from "@astrojs/react";

import robotsTxt from "astro-robots-txt";

// https://astro.build/config
export default defineConfig({
integrations: [tailwind(), icon(), react()]
site: 'https://rrcoder0167.is-a.dev',
integrations: [tailwind(), icon(), react(), robotsTxt()]
});
35 changes: 35 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@types/react-dom": "^18.2.21",
"astro": "^4.5.2",
"astro-icon": "^1.1.0",
"astro-robots-txt": "^1.0.0",
"react-dom": "^18.2.0",
"react-type-animation": "^3.2.0",
"tailwindcss": "^3.4.1",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Navbar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ import '@fontsource-variable/jetbrains-mono';
<span class="bg-green border-surface0 relative right-3 top-3 z-10 inline-block h-5 w-5 rounded-full border-4" id="discStatus-dot"></span>
</div>
</div>
<div class="absolute left-1/2 top-1/2 float-none m-auto flex -translate-x-1/2 -translate-y-1/2 transform px-4">
<div class="absolute left-1/2 top-1/2 float-none m-auto flex -translate-x-1/2 -translate-y-1/2 transform px-4 transition duration-300 ease-in-out">
<a href="/" class="text-mauve hover:text-blue px-4 font-bold no-underline transition duration-300 ease-in-out hover:cursor-pointer hover:font-black">Home</a>
<a href="/projects" class="text-subtext0 hover:text-text px-4 no-underline transition duration-300 ease-in-out hover:cursor-pointer hover:font-semibold">Projects</a>
<a href="/contact" class="text-subtext0 hover:text-text px-4 no-underline transition duration-300 ease-in-out hover:cursor-pointer hover:font-semibold">Contact</a>
Expand Down
1 change: 0 additions & 1 deletion src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const { title } = Astro.props;
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="My name is Riddhiman Rana and I am a full stack developer. Find out more about me and my projects." />
<link rel="stylesheet" href="https://unpkg.com/@catppuccin/palette/css/catppuccin.css" />
<script defer data-domain="rrcoder0167.is-a.dev" src="https://analytics.is-a.dev/js/script.js"></script>

</head>
Expand Down

0 comments on commit f22f157

Please sign in to comment.