-
Notifications
You must be signed in to change notification settings - Fork 14
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
How to use your theme #1
Comments
Hi, could you please post the error you get when you run the command in step 2 in the README? |
|
Because the theme uses the Hugo Modules feature, you need to install golang. See https://gohugo.io/installation/linux/#prerequisites
|
I have golang installed already through scoop |
Maybe you need to run |
Two possible reasons to check:
|
I got it to work. This is the full step-by-step that should work for everyone from scratch: scoop install go hugo-extended nodejs-lts
hugo new site mysite
cd ./mysite
hugo mod init mysite # this is the critical step I believe most of us missed!
Add-Content ./hugo.toml @'
theme = 'github.com/canstand/compost'
# required
[build]
_merge = 'deep'
# required
[markup]
_merge = 'deep'
# for better seo
[minify]
_merge = 'deep'
'@
hugo mod get -u
hugo mod npm pack
npm install then when you run
to fix this go to the Then I had to run |
Just adding my own experience report. I did my best to follow the gist of this conversation and the README instructions using WSL2.
And there were no error messages in the console. I really liked the demo I saw of this theme, but I wish it were easier to use. I'm not especially interested in troubleshooting this issue at the moment, just letting you know what I experienced before I go back to the theme library and look for another. |
The config required for version v0.6.0 has add this: # required
[module]
_merge = 'deep' See https://github.com/canstand/compost#usage There was an issue with the daily build of |
Yes, I had used that portion from the README here on GitHub. I’m really unsure what went wrong. |
It is true that there is a issue with the css built when running After Ctrl+C, run It is not yet known why. |
It's related to gohugoio/hugo#11403, see the latest version of usage. |
@canstand, Is it possible to disable displaying Hugo Variables for the current page? I used the latest theme with hugo v0.121.2. |
It's only show when |
Thanks for your quick reply! I got it! |
Hugo newbie here ✋🏼 I liked this theme and needed clarification about installing it because the README assumes I am familiar with Hugo, so I checked out this issue. For anyone looking for answers, here's a step-by-step to complete the setup:
|
This saved my day! I had to remove hugo.toml to use config.toml, as it is reading hugo.toml first. |
Hello and sorry to bother you with a noob question, but apparently recent versions of hugo do not really support the way you described in the readme to install the theme or maybe I'm doing something wrong. Could you please explain how to install and use your theme (possibly the tagged releases instead of the main branch) in detailed steps?
The text was updated successfully, but these errors were encountered: