Closed javierasping closed 9 months ago
I managed to build your site locally by removing the following lines from your config.yaml
images:
defaultWidth: original
defaultHeight: original
services:
darkreader:
defaultColorScheme: system # options are 'system', 'dark', 'light'
fixes:
invert: ['img[src$=".svg"]'] # inverts svg colors.
theme:
brightness: 100
contrast: 100
sepia: 0
Yes , I've updated the config.yaml as instructed in the guide you provided. Some parameters were already correctly set "with the new version". Locally on my PC and on Netlify, the site builds fine. The problem lies with the update action. How can I determine the version of the theme I'm running locally?
With the changes you mentioned, which are the ones I've made, the dark theme has stopped working.
You need to update the version with the following commands:
hugo mod get -u
hugo mod npm pack
hugo mod tidy
And push the changes after running them
Yes, I need to update the version of Hugo I have locally true ??.
javiercruces@HPOMEN15:~/Documentos/sentinel$ hugo mod get -u go: upgraded github.com/hugo-toha/toha/v4 v4.0.0-20230728200917-0e12222cc3bd => v4.3.0
javiercruces@HPOMEN15:~/Documentos/sentinel$ hugo mod npm pack WARN 2024/02/19 12:30:54 Module "github.com/hugo-toha/toha/v4" is not compatible with this Hugo version; run "hugo mod graph" for more information.
javiercruces@HPOMEN15:~/Documentos/sentinel$ hugo mod tidy
WARN 2024/02/19 12:31:04 Module "github.com/hugo-toha/toha/v4" is not compatible with this Hugo version; run "hugo mod graph" for more information.
javiercruces@HPOMEN15:~/Documentos/sentinel$ hugo mod graph WARN 2024/02/19 12:34:38 Module "github.com/hugo-toha/toha/v4" is not compatible with this Hugo version; run "hugo mod graph" for more information. github.com/hugo-toha/hugo-toha.github.io github.com/hugo-toha/toha/v4@v4.3.0
Yes, you have to update it locally aswell. Now it should work
Thank you very much!! It's working correctly now.
Question
"I've noticed that the theme has been updated significantly since I forked it, and I'd like to update it. However, when I run the update script, I get the following error, and I'm not sure how to fix it."
update-theme Process completed with exit code 1. update-theme Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: peaceiris/actions-hugo@v2.6.0. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
I wanted to know if there is any way to do it manually or how to solve this error. Thank you very much in advance!! I leave you the link to the repository.
https://github.com/javierasping/sentinel