Closed IhnwhiHeo closed 1 year ago
Hi @IhnwhiHeo, we have made some changes in how the theme is used. We have moved from git sub module to Hugo modules. Please check the Usage section on Readme file.
Hi @hossainemruz, thank you for letting me know! I will check the Usage section and let me ask you if I find anything unclear.
Cheers, Ihnwhi
Be aware that configuration format has changed. You might have to change quite a few things. If you don't need any newer features and happy with your existing site, I will recommend to disable auto-updating using dependabot and stay to the latest stable release v3.8.0
.
@hossainemruz I checked a bit. I have two quick questions, please:
It seems you have already updated the theme to the latest commit. You have to roll-back to the latest release. I will let you know how you can you roll-back.
I see. Could you please let me know how to do that? Thanks :)
Sure. Give me a day.
Hi @IhnwhiHeo, created a PR to your repo upgrading the configuration to latest version. Once you merge it, your GitHub action should start working again.
Hi @hossainemruz, Thank you so much for this! I appreciate it. Then, from now onwards, I should not update the toha package, right?
You can update the theme.
Hi @hossainemruz,
Thank you! I will keep updating the theme. BTW, an additional issue arises:
static/files
folder.Could you please check this issue?
I will take a look at night.
Great, thank you! FYI, the example TOHA website also stopped working for the resume part. So fixing this will be very useful.
Hi @hossainemruz, Just wondering whether there are any updates on Resume/CV error. Hope this does not bug you too much, tho :)
Hi @IhnwhiHeo. Sorry, I couldn't manage time to look into this issue. This week was overwhelming for me. Hopefully, I will be able to look into this issue over the weekend or next week.
I think what is happening here is that the fonts are overwriting whatever is in fonts from this line in the example 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 basically is just filling the files directory with the mullish font files and nothing else.
A temporary workaround is to just change that section in config.yaml
to
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
- source: ./static/files
target: static/files
I don't know enough about Hugo to suggest a more substantial change to the theme, but I hope this helps @IhnwhiHeo in the meantime. To make things less confusing, I actually end up making a pdf
folder and change any pdf links to point to that directory. I still have to add
- source: ./static/pdf
target: static/pdf
@hossainemruz No worries at all! I understand that sometimes works are overwhelming. I hope all went well :) And the good news is that the solution suggested by @d-huck works! After adding those two lines, the website now works perfectly fine. Thank you so much, @d-huck!! Your solution is just amazing!
@d-huck solution is the right one. I would have suggested that too. If everything works properly, please consider closing this issue.
Perfect. Let me close this issue now. Thank you @hossainemruz and @d-huck for your time on this issue!
Hi Toha folks,
I have been facing the following error messages when I try to build and update my website using GitHub Actions: Process completed with exit code 255.
For example, please see my recent trials:
** I am using Mac to build my website.