mmistakes / minimal-mistakes

:triangular_ruler: Jekyll theme for building a personal site, blog, project documentation, or portfolio.
https://mmistakes.github.io/minimal-mistakes/
MIT License
12.24k stars 25.36k forks source link

Foot in the middle of the page #1578

Closed zhanghaomiao closed 6 years ago

zhanghaomiao commented 6 years ago

When I add a html page in my markdown post, the Foot is not at the bottom, but in the middle of my page. It's like this

bokeh

Environment informations


Expected behavior

The Foot should be placed at the bottom

Here is my file zip_file : file.zip

mmistakes commented 6 years ago

You're loading some arbitrary JavaScript and CSS that appears to be messing with the page.

image

I don't think the theme is at fault here. What you might want to try is adding the JavaScript to the footer so it loads after the theme's main scripts. They determine the height of the page to force the footer to the bottom, your scripts are likely interfering with this which is causing the footer to be placed in the middle of the page.

zhanghaomiao commented 6 years ago

How can I add the JavaScript to the footer? I'm new to the JavaScript, and I'm not good at this. Could you show me how to do this? Thanks.

mmistakes commented 6 years ago

Please read the theme's documentation.

https://mmistakes.github.io/minimal-mistakes/docs/javascript/

mmistakes commented 6 years ago

Related #1494, #1504, #1427