diff --git a/TODO.md b/TODO.md index 634ae2e..45ca571 100644 --- a/TODO.md +++ b/TODO.md @@ -9,7 +9,7 @@ - [x] prettier and eslint - [x] transition and loading times - [ ] pwa -- [ ] seo, robots.txt +- [x] seo, robots.txt - [x] update the README - [ ] create image provider - [x] fetch recipe per id diff --git a/bun.lockb b/bun.lockb index 96a7115..e7d3689 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/nuxt.config.ts b/nuxt.config.ts index b86f20b..71f4a8a 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -2,7 +2,13 @@ export default defineNuxtConfig({ devtools: { enabled: true }, - modules: ["@nuxt/eslint", "@nuxt/image", "nuxt-icon", "nuxt-delay-hydration"], + modules: [ + "@nuxt/eslint", + "@nuxt/image", + "nuxt-icon", + "nuxt-delay-hydration", + "@nuxtjs/robots", + ], app: { head: { @@ -19,6 +25,7 @@ export default defineNuxtConfig({ link: [{ rel: "icon", type: "image/png", href: "/favicon.png" }], }, pageTransition: { name: "page", mode: "out-in" }, + layoutTransition: { name: "slide", mode: "out-in" }, }, build: { @@ -53,3 +60,4 @@ export default defineNuxtConfig({ ssr: true, compatibilityDate: "2024-12-13", }); + diff --git a/package.json b/package.json index c97b95d..2344e37 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "dependencies": { "@nuxt/eslint": "^0.3.10", "@nuxt/image": "^1.6.0", + "@nuxtjs/robots": "5.0.1", "@trpc/client": "^10.45.2", "@trpc/server": "^10.45.2", "nuxt": "^3.14.1592", diff --git a/public/robots.txt b/public/robots.txt deleted file mode 100644 index 01b0f9a..0000000 --- a/public/robots.txt +++ /dev/null @@ -1,2 +0,0 @@ -# https://www.robotstxt.org/robotstxt.html -User-agent: *