How do I override and extend a partial without copying it? #3917
-
I want to add content to the end of I've include |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Thanks for asking. Good question, I don't think it's possible, as partials are, as far as I understand, overloaded by MkDocs, not Jinja, i.e. the directory structures of the theme and your overrides are merged. Thus, there's no access to the parent partial from the override. However, this is just my guess, so it could be a good idea to ask the maintainers of MkDocs. |
Beta Was this translation helpful? Give feedback.
Thanks for asking. Good question, I don't think it's possible, as partials are, as far as I understand, overloaded by MkDocs, not Jinja, i.e. the directory structures of the theme and your overrides are merged. Thus, there's no access to the parent partial from the override. However, this is just my guess, so it could be a good idea to ask the maintainers of MkDocs.