Skip to content
This repository has been 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
merged 3 commits into from
Jun 30, 2022

Conversation

donatelloraphael
Copy link
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

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