Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ import mdx from '@astrojs/mdx';
import pagefind from 'astro-pagefind';
import tailwindcss from '@tailwindcss/vite';

import sitemap from '@astrojs/sitemap';

export default defineConfig({
site: 'https://www.repl.net',
integrations: [mdx(), pagefind()],
integrations: [mdx(), pagefind(), sitemap()],
vite: {
// 빈 옵션 객체를 전달해 봅니다.
plugins: [tailwindcss()],
Expand Down
71 changes: 68 additions & 3 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/mdx": "^6.0.2"
"@astrojs/mdx": "^6.0.2",
"@astrojs/sitemap": "^3.7.3"
},
"devDependencies": {
"@astrojs/check": "^0.9.9",
Expand Down
4 changes: 3 additions & 1 deletion public/robots.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Example: Allow all bots to scan and index your site.
# Full syntax: https://developers.google.com/search/docs/advanced/robots/create-robots-txt
User-agent: *
Allow: /
Allow: /

Sitemap: https://www.repl.net/sitemap-index.xml
1 change: 1 addition & 0 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const {
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5" />
<meta name="generator" content={Astro.generator} />
<title>{title}</title>
<link rel="sitemap" href="/sitemap-index.xml" />
</head>
<body>
<slot />
Expand Down
Loading