浏览代码

add robots.txt and sitemap

Olivier Massot 1 年之前
父节点
当前提交
ccf52a2f2c
共有 4 个文件被更改,包括 957 次插入91 次删除
  1. 1 0
      nuxt.config.ts
  2. 1 0
      package.json
  3. 4 0
      public/robots.txt
  4. 951 91
      yarn.lock

+ 1 - 0
nuxt.config.ts

@@ -131,6 +131,7 @@ export default defineNuxtConfig({
     '@nuxt/devtools',
     '@nuxt/devtools',
     'nuxt3-leaflet',
     'nuxt3-leaflet',
     '@nuxtjs/google-fonts',
     '@nuxtjs/google-fonts',
+    '@nuxtjs/sitemap',
   ],
   ],
   router: {
   router: {
     options: {
     options: {

+ 1 - 0
package.json

@@ -32,6 +32,7 @@
     "@nuxtjs/date-fns": "^1.5.0",
     "@nuxtjs/date-fns": "^1.5.0",
     "@nuxtjs/google-fonts": "^3.2.0",
     "@nuxtjs/google-fonts": "^3.2.0",
     "@nuxtjs/i18n": "^8.1.1",
     "@nuxtjs/i18n": "^8.1.1",
+    "@nuxtjs/sitemap": "^5.2.0",
     "@pinia-orm/nuxt": "^1.7.0",
     "@pinia-orm/nuxt": "^1.7.0",
     "@pinia/nuxt": "^0.5.1",
     "@pinia/nuxt": "^0.5.1",
     "@splidejs/vue-splide": "^0.6.12",
     "@splidejs/vue-splide": "^0.6.12",

+ 4 - 0
public/robots.txt

@@ -0,0 +1,4 @@
+User-agent: *
+Allow: /
+
+Sitemap: https://logiciels.opentalent.fr/sitemap.xml

文件差异内容过多而无法显示
+ 951 - 91
yarn.lock


部分文件因为文件数量过多而无法显示