Giter VIP home page Giter VIP logo

Comments (6)

BernatBC avatar BernatBC commented on July 4, 2024

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

from toha.

javierasping avatar javierasping commented on July 4, 2024

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.

from toha.

BernatBC avatar BernatBC commented on July 4, 2024

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

from toha.

javierasping avatar javierasping commented on July 4, 2024

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/[email protected]

from toha.

BernatBC avatar BernatBC commented on July 4, 2024

Yes, you have to update it locally aswell. Now it should work

from toha.

javierasping avatar javierasping commented on July 4, 2024

Thank you very much!! It's working correctly now.

from toha.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.