thombruce / rockband

🎸 UI kit and utilities for Vue and Nuxt
https://thombruce.github.io/rockband/
MIT License
1 stars 0 forks source link

Standardise head Properties #3

Open thombruce opened 2 years ago

thombruce commented 2 years ago

Pages in Nuxt extend a head () object that can be configured. I've been copy-pasting page contents between projects for a little while with little thought to the setup actually required...

It would be awesome if I could set this either in a layout or mixin instead that RockBand could deliver, having a set of sensible defaults and otherwise configurable via a RockBand config file... while still overridable per page.

If that's not possible (i.e. if head () is only valid on page components), setup a strong default in the head object to be injected into the Nuxt config (nuxt.config.js). The default should be overridable by, in order of strength: