mirror of
https://github.com/SrIzan10/mainwebsite.git
synced 2026-06-06 00:56:58 +00:00
feat: add sitemap and robots.txt
This commit is contained in:
@@ -7,6 +7,6 @@ import tailwind from "@astrojs/tailwind";
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
site: 'https://example.com',
|
||||
site: 'https://srizan.dev',
|
||||
integrations: [mdx(), sitemap(), react(), tailwind()]
|
||||
});
|
||||
4
public/robots.txt
Normal file
4
public/robots.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
User-agent: *
|
||||
Allow: /
|
||||
|
||||
Sitemap: https://srizan.dev/sitemap-index.xml
|
||||
@@ -19,6 +19,7 @@ const { title, description, image = '/blog-placeholder-1.jpg' } = Astro.props;
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
<link rel="sitemap" href="/sitemap-index.xml" />
|
||||
|
||||
<!-- Font preloads -->
|
||||
<link rel="preload" href="https://fonts.srizan.dev/satoshi/fonts/Satoshi-Medium.woff" as="font" type="font/woff" crossorigin />
|
||||
|
||||
Reference in New Issue
Block a user