-
Notifications
You must be signed in to change notification settings - Fork 626
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Background change request #1023
Comments
You can change the background by setting the following into your # Site parameters
params:
# Background image of the landing page
background: /images/site/background.jpg You can take a look at the example file in https://github.com/hugo-toha/hugo-toha.github.io/blob/main/hugo.yaml If I'm not mistaken, at the moment there isn't the option to set a different background between light and dark mode |
I've made a PR #1024. Once that's merged, you can specify the dark background by setting: # Site parameters
params:
# Background image of the landing page
background: "images/background.jpg"
darkBackground: "images/background_dark.jpg" |
Hi @jackwu925, It's OK for you ? Can we close your issue ? Thank |
Hello @niltied
|
Hi @jackwu925, in order to use the latest commit instead of the latest release, you need to change
You need to replace it for:
Afterwards, you need to type the following commands: hugo mod get -u ./...
hugo mod tidy
hugo mod npm pack
npm install Hope this solves the issue |
Hi @BernatBC , thank you very much for your help. The code works finally. |
Hello, is there any code which can be used to customize the background? (including the dark mode and the light mode)
The text was updated successfully, but these errors were encountered: