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

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

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

docs: clarify that definePageMeta only works in the pages directory#5663
pi0 merged 3 commits intonuxt: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
Copy link
Copy Markdown

netlify Bot commented Jun 29, 2022

Deploy Preview for nuxt3-docs ready!

Name Link
🔨 Latest commit 9d79f36
🔍 Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/62bd6260a821ac0008ddc8bf
😎 Deploy Preview https://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 thread docs/content/2.guide/2.features/4.head-management.md Outdated
Copy link
Copy Markdown
Member

@danielroe danielroe left a comment

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
Copy link
Copy Markdown
Member

pi0 commented Jun 29, 2022

@danielroe Do you mind pushing changes?

@danielroe danielroe changed the title docs: add warning about definePageMeta macro only working in pages directory docs: clarify that definePageMeta only works in the pages directory Jun 30, 2022
@pi0 pi0 merged commit 568fcae into nuxt:main Jun 30, 2022
@pi0 pi0 mentioned this pull request Jul 11, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
Sign up for free to 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