Skip to content
This repository was archived by the owner on Apr 6, 2023. It is now read-only.
/frameworkPublic archive

docs: clarify that definePageMeta only works in the pages directory - #5663

Merged
pi0 merged 3 commits into
nuxt:mainfrom
donatelloraphael:patch-1
Jun 30, 2022
Merged

docs: clarify that definePageMeta only works in the pages directory#5663
pi0 merged 3 commits into
nuxt:mainfrom
donatelloraphael:patch-1

Conversation

@donatelloraphael

Copy link
Copy Markdown
Contributor

Added warning about definePageMeta macro only working in pages in pages/ directory

🔗 Linked issue

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

Added warning about definePageMeta macro only working in pages in pages/ directory
@netlify

netlifyBot commented Jun 29, 2022

Copy link
Copy Markdown

Deploy Preview for nuxt3-docs ready!

NameLink
🔨 Latest commit9d79f36
🔍 Latest deploy loghttps://app.netlify.com/sites/nuxt3-docs/deploys/62bd6260a821ac0008ddc8bf
😎 Deploy Previewhttps://deploy-preview-5663--nuxt3-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@danielroe
danielroe self-requested a review June 29, 2022 20:04
Comment threaddocs/content/2.guide/2.features/4.head-management.md Outdated

@danielroedanielroe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps just at the start of the section?

Within your pages/ directory, you can use definePageMeta along with useHead to set metadata based on the current route.

And then add a link at the end to https://v3.nuxtjs.org/guide/directory-structure/pages/#page-metadata?

@pi0

pi0 commented Jun 29, 2022

Copy link
Copy Markdown
Member

@danielroe Do you mind pushing changes?

@danielroedanielroe changed the title docs: add warning about definePageMeta macro only working in pages directorydocs: clarify that definePageMeta only works in the pages directoryJun 30, 2022
pi0
pi0 approved these changes Jun 30, 2022
@pi0
pi0 merged commit 568fcae into nuxt:mainJun 30, 2022
@pi0pi0 mentioned this pull request Jul 11, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@donatelloraphael@pi0@danielroe