diff --git a/layouts/default.vue b/layouts/default.vue index bbfe9a3..2743cca 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -5,6 +5,8 @@ useHead({ title: laravel[0], }) +defineRobotMeta() + useSeoMeta({ title: 'Laravel Artisan Cheatsheet', description: "A bookmarkable, searchable cheatsheet for Laravel's PHP Artisan commands.", @@ -25,6 +27,8 @@ useSeoMeta({ diff --git a/nuxt.config.js b/nuxt.config.js index 91c5575..f6ff987 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -58,6 +58,7 @@ export default defineNuxtConfig({ '@nuxtjs/tailwindcss', '@nuxtjs/color-mode', 'nuxt-simple-sitemap', + 'nuxt-simple-robots', ], // Axios module configuration: https://go.nuxtjs.dev/config-axios diff --git a/package-lock.json b/package-lock.json index ef8630b..56e1953 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,6 +18,7 @@ "lodash.groupby": "^4.6.0", "mousetrap": "^1.6.5", "nuxt": "^3.7.4", + "nuxt-simple-robots": "^3.1.9", "nuxt-simple-sitemap": "^4.1.3", "postcss": "^8.4.31", "vue-router": "^4.2.5" @@ -8712,6 +8713,23 @@ } } }, + "node_modules/nuxt-simple-robots": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/nuxt-simple-robots/-/nuxt-simple-robots-3.1.9.tgz", + "integrity": "sha512-JpXLbuPh3gXu7Sfy+6WJcDCaPpshFbn7aDQtfIOiuKXqxw2zY/BopBeJWQRzPBAcWc/R4S0yxRVFxK8BsbT5aA==", + "dev": true, + "dependencies": { + "@nuxt/kit": "^3.8.0", + "defu": "^6.1.3", + "nuxt-site-config": "^1.5.5", + "nuxt-site-config-kit": "^1.5.5", + "pathe": "^1.1.1", + "ufo": "^1.3.1" + }, + "funding": { + "url": "https://github.com/sponsors/harlan-zw" + } + }, "node_modules/nuxt-simple-sitemap": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/nuxt-simple-sitemap/-/nuxt-simple-sitemap-4.1.3.tgz", diff --git a/package.json b/package.json index eedbc35..e68b7fc 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "lodash.groupby": "^4.6.0", "mousetrap": "^1.6.5", "nuxt": "^3.7.4", + "nuxt-simple-robots": "^3.1.9", "nuxt-simple-sitemap": "^4.1.3", "postcss": "^8.4.31", "vue-router": "^4.2.5" diff --git a/public/robots.txt b/public/_robots.txt similarity index 100% rename from public/robots.txt rename to public/_robots.txt