Skip to content
Discussion options

You must be logged in to vote

Oh, then perhaps this isn't a duplicate, sorry.

You can only override blocks in main.html. If you're overriding partials, you can't extend base.html or main.html.
It is executed from top to bottom main.html -> base.html -> partials/*.html it can't go back up.

This is the allowed structure in header.html:
with comments: https://github.com/squidfunk/mkdocs-material/blob/master/src/templates/partials/header.html
minified: https://github.com/squidfunk/mkdocs-material/blob/master/material/templates/partials/header.html

If you want to override the announcement block then do it in main.html

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mateus2k2
Comment options

@kamilkrzyskow
Comment options

Answer selected by mateus2k2
@mateus2k2
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants