On FreeBSD 13.3, I ran doas pkg install gohugo
. Then I created a site. I added the ananke theme as a Hugo module (not as a git submodule). The site is accessible over the Internet (via Apache) and shows the default Hugo home page. How do I customize the background color?
Output of hugo env
:
hugo v0.123.8+extended freebsd/amd64 BuildDate=2024-03-07T23:57:02Z+0000 VendorInfo=freebsd
GOOS="freebsd"
GOARCH="amd64"
GOVERSION="go1.21.11"
github.com/sass/libsass="3.6.5"
github.com/webmproject/libwebp="v1.3.2"
Contents of hugo.toml:
baseURL = 'https://example.org/'
languageCode = 'en-us'
title = 'My New Hugo Site'
theme = ["github.com/theNewDynamic/gohugo-theme-ananke"]
[params]
customCSS = ["static/css/custom.css"]
Contents of static/css/custom.css:
body {
background-color: #f0f0f0;
# background-image: url('/images/your-background.jpg');
}
header {
background-color: DodgerBlue;
# background-image: url('/images/your-header-image.jpg');
}
body, h1, h2, h3, h4, h5, h6 {
font-family: "Courier New", monospace;
}
I have repeatedly run the hugo
command after several changes and the builds have been successful, but none of the custom CSS seems to be applying.