jess
jess
NNuxt
Created by jess on 11/1/2024 in #❓・help
Can I get a recipe for using @nuxt/content with layouts? I'm super confused.
Aw, thanks Kapa.
33 replies
NNuxt
Created by jess on 11/1/2024 in #❓・help
Can I get a recipe for using @nuxt/content with layouts? I'm super confused.
@kapa.ai 😭 I finally figured it out.
- app.vue - only contains the "Which page to load" control flow logic
<NuxtPage />
- index.vue / [...slug].vue - selects with layout to use, fetches the page and stuff
<NuxtLayout>
<ContentDoc />
</NuxtLayout>
- layouts/default.vue - uses a slot to render the markdown
<div>
<slot/>
</div>
- app.vue - only contains the "Which page to load" control flow logic
<NuxtPage />
- index.vue / [...slug].vue - selects with layout to use, fetches the page and stuff
<NuxtLayout>
<ContentDoc />
</NuxtLayout>
- layouts/default.vue - uses a slot to render the markdown
<div>
<slot/>
</div>
33 replies
NNuxt
Created by jess on 11/1/2024 in #❓・help
Can I get a recipe for using @nuxt/content with layouts? I'm super confused.
@kapa.ai OK Nuxt is throwing warnings like "ssr:warn [nuxt] Your project has layouts but the <NuxtLayout /> component has not been used." should I... ignore it?
33 replies
NNuxt
Created by jess on 11/1/2024 in #❓・help
Can I get a recipe for using @nuxt/content with layouts? I'm super confused.
@kapa.ai Fam, when I do this I get the following warning: [@nuxt/content 2:06:46 PM] WARN Using <NuxtLayout> inside app.vue will cause unwanted layout shifting in your application. Consider removing <NuxtLayout> from app.vue and using it in your pages.
33 replies
NNuxt
Created by jess on 11/1/2024 in #❓・help
Can I get a recipe for using @nuxt/content with layouts? I'm super confused.
@kapa.ai This seems... wrong. I legit just want a recipe for using Nuxt Content with layouts, but I keep getting hydration mismatch errors when I follow the documentation or your answers.
33 replies
NNuxt
Created by jess on 11/1/2024 in #❓・help
Can I get a recipe for using @nuxt/content with layouts? I'm super confused.
No description
33 replies
NNuxt
Created by jess on 10/31/2024 in #❓・help
How do you best manage redirects and canonical links within a Nuxt Content site?
Ohai @manniL. I played with Nuxt SEO yesterday. Also using Route Rules rn. 👀
12 replies
NNuxt
Created by jess on 10/31/2024 in #❓・help
How do you best manage redirects and canonical links within a Nuxt Content site?
@kapa.ai Is there some general pattern people like to use that's somewhat standardized...? or a plugin?
12 replies
NNuxt
Created by jess on 10/23/2024 in #❓・help
Setting up redirects with .well-known and Nuxt Content
@kapa.ai Hot af. Love it. Thank you.
24 replies
NNuxt
Created by jess on 10/23/2024 in #❓・help
Setting up redirects with .well-known and Nuxt Content
@kapa.ai If my redirects are always static, should they live inside of the network layer instead of something that requires "compute"
24 replies
NNuxt
Created by jess on 10/23/2024 in #❓・help
Setting up redirects with .well-known and Nuxt Content
@kapa.ai It seems like middleware is required for redirects. That makes sense. Can you explain how middleware works with Nuxt servers that use a serverless architecture via Lambdas
24 replies
NNuxt
Created by jess on 10/23/2024 in #❓・help
Setting up redirects with .well-known and Nuxt Content
@kapa.ai Yeah those pages don't really have that information. Am I really writing this stuff raw using middleware? That seems... exhausting.
24 replies
NNuxt
Created by jess on 10/23/2024 in #❓・help
Setting up redirects with .well-known and Nuxt Content
Yeah those pages don't really have that information. Am I really writing this stuff raw using middleware? That seems... exhausting.
24 replies
NNuxt
Created by jess on 10/23/2024 in #❓・help
Setting up redirects with .well-known and Nuxt Content
Hi Kapa. I'm excited to work with you.
24 replies