Skip to content

Conversation

@Tahul
Copy link
Contributor

@Tahul Tahul commented Jun 27, 2022

❓ Type of change

  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)

πŸ“š Description

This PR adds useContentHead(document: ParsedContent, to: RouteLocationNormalized = useRoute()) function.

It gives easy access to <head> binding in both <ContentDoc> and documentDriven features.

It is easily toggleable for <ContentDoc /> via the new head props.

If you want to remove the binding from documentDriven, you can overwrite the default [...slug].vue page.

Documentation has been updated.

Also fixes the latest issues with documentDriven path errors. 😬

πŸ“ Checklist

  • I have updated the documentation accordingly.

@netlify
Copy link

netlify bot commented Jun 27, 2022

βœ… Deploy Preview for nuxt-content ready!

Name Link
πŸ”¨ Latest commit bafa242
πŸ” Latest deploy log https://app.netlify.com/sites/nuxt-content/deploys/62b9d55139bcc7000a65db79
😎 Deploy Preview https://deploy-preview-1295--nuxt-content.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.

@atinux atinux self-requested a review June 27, 2022 13:48
@atinux
Copy link
Member

atinux commented Jun 27, 2022

Can you fix the lint error?

@Tahul Tahul requested review from atinux and farnabaz June 27, 2022 15:42
@atinux atinux merged commit 105f690 into main Jun 27, 2022
@atinux atinux deleted the feat/use-content-head branch June 27, 2022 16:17
@farnabaz farnabaz mentioned this pull request Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants