Open PrimalOutshoot opened 11 months ago
Do you have a plan ?
I haven't tried so far to add a new custom layouts, but I had to override the default one and some of the default components in our docus theme. You can do this by matching exactly their directory structure and component naming. Creating layouts/default.vue
or layouts/page.vue
in your root, will override those layouts. I advise you to simply copy the components from e.g. node_modules/@nuxt-themes/docus/layouts/default.vue
first, so you don't break functionality and then extend the code to your need. Hope that might help someone.
I am new to both Nuxt and Docus theme. I don't know how to customize the themes.
The main page of docus says the theme is customizable with the words:
"Extensible. Customize the whole design, or add components using slots - you can make Docus your own."
Customizing the style.css adds padding globally, but
I tried creating a component in layouts/customdefault.vue
and then using frontmatter or _dir.yaml to select the layout: customdefault, but my layout doesn't register. Even when it is as simple as HELLO WORLD. There does not seem to be any guidance on how to actually override or extend this themes layout. I do not know what to do and support for the theme seems to be limited. Hoping someone in the community could offer some guidance?