From 44469bd9f292e2f6b60d3d4bec3eb9fea77e10c9 Mon Sep 17 00:00:00 2001 From: Andrew Date: Wed, 19 Jun 2024 19:05:58 +0300 Subject: [PATCH] Fix robots & sitemap SEO disaster --- nuxt.config.ts | 33 +-------------------------------- package-lock.json | 4 ++-- pages/about.vue | 9 +++++++++ pages/blog/index.vue | 8 ++++++++ pages/projects.vue | 9 +++++++++ pages/social.vue | 9 +++++++++ public/robots.txt | 4 ++++ 7 files changed, 42 insertions(+), 34 deletions(-) create mode 100644 public/robots.txt diff --git a/nuxt.config.ts b/nuxt.config.ts index 112aa3f..adaccd4 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -137,32 +137,6 @@ export default defineNuxtConfig({ markdown: true, }, }, - // routeRules: { - // '/': { - // sitemap: { - // changefreq: 'yearly', - // priority: 1, - // }, - // }, - // '/about': { - // sitemap: { - // changefreq: 'yearly', - // priority: 0.6, - // }, - // }, - // '/projects': { - // sitemap: { - // changefreq: 'monthly', - // priority: 0.7, - // }, - // }, - // '/social': { - // sitemap: { - // changefreq: 'yearly', - // priority: 0.7, - // }, - // }, - // }, sitemap: { sources: ['/api/__sitemap__/content'], cacheMaxAgeSeconds: 360, @@ -179,16 +153,11 @@ export default defineNuxtConfig({ }, ], defaults: { - changefreq: 'yearly', - priority: 0.7, lastmod: config.build.date, }, }, robots: { - enabled: true, - metaTag: true, - blockNonSeoBots: true, - credits: false, + enabled: false, }, tailwindcss: { exposeConfig: true, diff --git a/package-lock.json b/package-lock.json index 9ceeea7..ce047d5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "enderapp", - "version": "0.2.5", + "version": "0.3.8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "enderapp", - "version": "0.2.5", + "version": "0.3.8", "hasInstallScript": true, "dependencies": { "@date-io/date-fns": "^3.0.0", diff --git a/pages/about.vue b/pages/about.vue index d9fa6b1..0ec084a 100644 --- a/pages/about.vue +++ b/pages/about.vue @@ -1,4 +1,6 @@