3 ms·
How much vue do you need to know to heavily customize a theme?
by jehlakj 8y ago
How much vue do you need to know to heavily customize a theme?
- tomcam 8y agoNone. Just Styl or CSS: http://vuepressbook.com/custom-themes/custom1.html#create-a-theme-directory-in-usr-local-lib-node-modules http://vuepressbook.com/custom-themes/custom1.html#create-a-...
- nichlas 8y agoNot much at all, all .vue files in the components directory gets registered globally, so if you create a Navbar.vue file, you can use <Navbar /> anywhere in your theme. Easiest templating system I've ever used. If you learn a bit of how passing props work, you're golden! Some info on vue single file components: https://vuejs.org/v2/guide/single-file-components.html https://vuejs.org/v2/guide/single-file-components.html Props documentation: https://vuejs.org/v2/guide/components-props.html https://vuejs.org/v2/guide/components-props.html
- toddmorey 8y agoDo you know if registered globally = pre-loaded or are they only loaded as encountered / needed? Just wondering if you have to be careful how many components you put in that directory. Not for purpose of templates of course, but for the unique Vue components that you can put in page content.