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

docs: add layout to match custom header example #4593

Merged
merged 1 commit into from
Apr 25, 2022
Merged

Conversation

danielroe
Copy link
Member

πŸ”— Linked issue

resolves nuxt/nuxt#13829

❓ 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

Adds the other half of the example.

πŸ“ Checklist

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

@danielroe danielroe added the documentation Improvements or additions to documentation label Apr 25, 2022
@danielroe danielroe requested review from clemcode and pi0 April 25, 2022 13:01
@danielroe danielroe self-assigned this Apr 25, 2022
@netlify
Copy link

netlify bot commented Apr 25, 2022

βœ… Deploy Preview for nuxt3-docs ready!

Name Link
πŸ”¨ Latest commit 8eb2197
πŸ” Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/62669b9da51fc400089ad92b
😎 Deploy Preview https://deploy-preview-4593--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.

@pi0 pi0 merged commit 8fae863 into main Apr 25, 2022
@pi0 pi0 deleted the docs/custom-layout branch April 25, 2022 16:54
@tobiasdiez
Copy link
Contributor

Thanks for the clarification. So one has to use the NuxtLayout component in order to define the templates for named slots, or is there a more elegant solution?

@danielroe
Copy link
Member Author

Yes, that's required at the moment. There was talk of <template layout="custom"> but that's not technically valid SFC syntax and would require updating in tooling as well as a Nuxt compile transform.

@tobiasdiez
Copy link
Contributor

Okay, make sense. Thanks!

@pi0 pi0 mentioned this pull request May 2, 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
3.x documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

docs: Layouts with named scopes not documented
3 participants