Closed roumail closed 1 year ago
Can you please share your repo. The configuration format has changed from the documentation.
You are using old configuration format. Please, check this new format: https://github.com/hugo-toha/hugo-toha.github.io/blob/dd88f0fb7af186f83ece20c507deac61ac324c5c/config.yaml#L116
Yes, indeed it works now, What about the section. Is this part of the new or old config?
module:
imports:
- path: github.com/hugo-toha/toha/v4
mounts:
- source: ./node_modules/flag-icon-css/flags
target: static/flags
- source: ./node_modules/@fontsource/mulish/files
target: static/files
- source: ./node_modules/katex/dist/fonts
target: static/fonts
This part is for new config
I’m sorry, I meant to say, do I need to add this to my config too? I get an error when I add
•••
module:
Yes. You have to add it. What error are you getting?
Hi @hossainemruz, Thanks for your reply. I'm currently building the website locally and when I uncomment this block of code, I get the following error:
Failed to reload config: module "github.com/hugo-toha/toha/v4" not found; either add it as a Hugo Module or store it in "/Users/rohailtaimour/home/2_AREAS/WEBSITE/roumail.github.io/themes".: module does not exist
Hi, any suggestions on what I ought to do?
Hi @roumail you have removed the module files go.mod
and go.sum
from your repo. They are used for handling hugo modules. Please, initialize it with
hugo mod init github.com/roumail/roumail.github.io
hugo mod tidy
Then, run
hugo mod npm pack
npm install
Also, remove theme: "toha"
line from your config.yaml
file. After that you should be able to run the website again.
Hi @hossainemruz , thanks for your tips! Clearly I'm a novice hacking my way through to get a website up and running.. all thanks to your tips! I have a running website now and understand a bit better how to handle the latest config. I still have a few questions, that I might post here in this chat but feel free to tell me to open another issue if you want to close this thread.
Thanks again!!
Sure. Please, close this issue and open a discussion with your query.
Expected Behavior
Followed the documents for adding comments and tried disqus, utteranc and giscus to no avail.
Current Behavior
No comments section added
Possible Solution
I was first trying with giscus and when it didn't work with the others as well, I thought this is likely a bug.
Steps to Reproduce
Screenshots
Browsers Affected