Open bertday opened 2 years ago
This trick resolved the issue:
body{
min-height: 100vh;
display: flex;
flex-direction: column;
}
footer{
margin-top: auto;
}
Hi @Altonss, Thanks for your code snippet! Would you mind giving some details about where/in which file this code should be?
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!
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 !
@Altonss I don't want to steal that snippet and make a PR. You should get the credit for that one!
New-ish to hugo so this took a bit of troubleshooting. Got @Altonss' custom.css
working with two files:
static/css/custom.css
body {
min-height: 100vh;
display: flex;
flex-direction: column;
}
footer {
margin-top: auto;
}
hugo.toml
baseURL = 'https://example.org/'
languageCode = 'en-us'
title = 'Hello, World!'
theme = 'ananke'
[params]
custom_css = ["css/custom.css"]
custom_js = ["js/custom.js"]
Thanks for posting the workaround!! 🙏
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:
I think this may be the same issue as #370, which appears to have been closed.