Skip to content

feat(use-content-head): add helper for <head> binding - #1295

Merged
atinux merged 10 commits into
mainfrom
feat/use-content-head
Jun 27, 2022
Merged

feat(use-content-head): add helper for <head> binding#1295
atinux merged 10 commits into
mainfrom
feat/use-content-head

Conversation

@Tahul

@TahulTahul commented Jun 27, 2022

Copy link
Copy Markdown
Contributor

❓ 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

netlifyBot commented Jun 27, 2022

Copy link
Copy Markdown

Deploy Preview for nuxt-content ready!

NameLink
🔨 Latest commitbafa242
🔍 Latest deploy loghttps://app.netlify.com/sites/nuxt-content/deploys/62b9d55139bcc7000a65db79
😎 Deploy Previewhttps://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
Copy Markdown
Member

Can you fix the lint error?

Comment threaddocs/content/4.api/2.composables/6.use-content-head.md Outdated
@Tahul
Tahul requested review from atinux and farnabazJune 27, 2022 15:42
@atinux
atinux merged commit 105f690 into mainJun 27, 2022
@atinux
atinux deleted the feat/use-content-head branch June 27, 2022 16:17
@farnabazfarnabaz mentioned this pull request Aug 12, 2022
Sign up for freeto 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.

2 participants

@Tahul@atinux