Blog: Unable to extend with custom HTML #8489
-
|
Hi all, I know this is a very specific use case, but my question is that I'm unable to extend the blog with a FAB "scroll to top" button that otherwise works as intended by extending main.html for regular sites. Whatever I've done, e.g. trying to override partials for the blog, does not seem to work. Basically, I'm trying to add a structure like this:
I include my JavaScript to control the button's action to the scripts block, which gets added across my different sites, but I've been unable to get anything to override the presentation of the blog altogether. How would this be done properly? Best, Søren G. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Hi @S-Groening, For normal pages, Both of the blog templates override the You can override whole template files, replace the files with your own and manage them just like another https://github.com/squidfunk/mkdocs-material/tree/master/src/templates |
Beta Was this translation helpful? Give feedback.
-
|
My problem stems from the fact that my CSS didn't make the FAB show above the rest of the footer, instead it would be covered by the footer when used with the blog, whereas the original placement within the content block of regular site pages show up as intended. I'll go over my CSS and make it work properly. -Thanks for your help @kamilkrzyskow ! |
Beta Was this translation helpful? Give feedback.
My problem stems from the fact that my CSS didn't make the FAB show above the rest of the footer, instead it would be covered by the footer when used with the blog, whereas the original placement within the content block of regular site pages show up as intended.
I'll go over my CSS and make it work properly. -Thanks for your help @kamilkrzyskow !