Style is missing #990
Replies: 4 comments 3 replies
-
Basically your steps look fine - although it could be argued that overriding the baseof template isn't a sustainable idea. That said, as I couldn't reproduce your issue, please share a link to your project. |
Beta Was this translation helpful? Give feedback.
-
I'm working on how to be able to share this, it's from a private repo. Meanwhile, can you tell me what's a better pattern than updating baseof? |
Beta Was this translation helpful? Give feedback.
-
Please watch for a notification, you'll be added to the repo |
Beta Was this translation helpful? Give feedback.
-
Remove |
Beta Was this translation helpful? Give feedback.
-
I created a banner by adding a notice to the base template. But I'm not seeing the style I expect for a notice. Here's what I did:
Create
/layouts/partials/wip-banner.html
.Add a notice:
Copy the theme’s
baseof.html
file to/layouts/_default/
.Add
{{ partial "wip-banner.html" . }}
to the<main>
element ofbaseof.html
just under the opening tag.The outcome is there (see screenshot), but there's no style: no box, no secondary color. The secondary color is defined in css:
What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions