gohugo-theme-ananke icon indicating copy to clipboard operation
gohugo-theme-ananke copied to clipboard

Footer not at bottom when post is short

Open bertday opened this issue 3 years ago • 6 comments

Hello,

Thank you for this lovely theme! I noticed one issue I wanted to surface here. When a post is very short (for example, just a sentence or two), the footer isn't at the bottom. Here is a screenshot of what I'm seeing:

image

I think this may be the same issue as #370, which appears to have been closed.

bertday avatar Jan 31 '22 05:01 bertday

This trick resolved the issue:

body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

footer{
  margin-top: auto;
}

Altonss avatar Aug 19 '22 14:08 Altonss

Hi @Altonss, Thanks for your code snippet! Would you mind giving some details about where/in which file this code should be?

t-kimber avatar Sep 16 '22 14:09 t-kimber

Hi @Altonss, Thanks for your code snippet! Would you mind giving some details about where/in which file this code should be?

I added this in a custom.css file! I didn't know how if it is possible to modify the tachyon css syntax in the html templates to match this, so I was not able to propose this change in a PR :) I would be happy to read a solution if anyone has an idea!

Altonss avatar Sep 16 '22 15:09 Altonss

I added this in a custom.css file! I didn't know how if it is possible to modify the tachyon css syntax in the html templates to match this, so I was not able to propose this change in a PR :) I would be happy to read a solution if anyone has an idea!

Wonderful, thanks for your help @Altonss !

t-kimber avatar Sep 16 '22 20:09 t-kimber

@Altonss I don't want to steal that snippet and make a PR. You should get the credit for that one!

Juanpam avatar Sep 26 '23 01:09 Juanpam