Skip to content

Commit

Permalink
improve(SEO): add robots.txt and generator for sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
zhullyb committed Dec 13, 2024
1 parent aebcbee commit e93c6c2
Show file tree
Hide file tree
Showing 4 changed files with 4,401 additions and 3,389 deletions.
15 changes: 14 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,23 @@ export default defineNuxtConfig({
compatibilityDate: "2024-11-01",
devtools: { enabled: true },
css: ["~/assets/css/main.css"],

postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {}
}
},

modules: ["@nuxtjs/sitemap"],
site: {
url: "https://zjutjh.github.io"
},
sitemap: {
defaults: {
lastmod: new Date().toISOString(),
priority: 1,
changefreq: "daily"
}
}
});
});
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"build:data": "node ./databuilder/index.js"
},
"dependencies": {
"@nuxtjs/sitemap": "^7.0.0",
"nuxt": "^3.14.1592",
"vue": "latest",
"vue-router": "latest"
Expand Down
Loading

0 comments on commit e93c6c2

Please sign in to comment.