Search disappears when overriding base.html #4311
-
When I override base.html to insert a static .css before main.css, the search field disapperas from navigation. Anyone knows why? Do I have to add something to mkdocs.yml och some asset? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
You very likely have either removed something related to search, or the whole application source code. Check the console for errors. When overriding the base template, it's a good idea to override specific blocks. Also make sure to call |
Beta Was this translation helpful? Give feedback.
-
Well, I found out that I should use main.html and extend base.html. How it works but I still can't add a |
Beta Was this translation helpful? Give feedback.
-
I don't know if it's the right approach, but adding the link using site_meta worked! |
Beta Was this translation helpful? Give feedback.
I don't know if it's the right approach, but adding the link using site_meta worked!