Code Monkey home page Code Monkey logo

Comments (6)

karl-cardenas-coding avatar karl-cardenas-coding commented on July 19, 2024

Update: If I create a hugo.toml in the root of the project and past over all the config values from all the files, it works. I also tried the command hugo server --configDir config but no luck. It's very possible I'm being a complete n00b here 😅

from hugo-liftoff.

wjh18 avatar wjh18 commented on July 19, 2024

I will take a look when I get to a computer. Hugo 0.110.0 changed the file (config to hugo). Version 0.99.0 is the latest I tested with, but plan to update it soon.

from hugo-liftoff.

wjh18 avatar wjh18 commented on July 19, 2024

Okay, so I think the issue is related to an update released in late May. I haven't tested the corresponding version yet which is why this happened (it's quite difficult to keep up with all updates and follow any sort of version pinning, so generally I put a min version in the theme's config.toml and try my best).

The original approach I took with theme config was to create a placeholder languages.toml to illustrate how to add additional config files. I haven't yet implemented translations/i18n which is why that file is blank. However, it has no defaultContentLanguage field defined. In the following merged pull request, I see that detection for this field was added and the reported error will be thrown if this field isn't defined.

Try either removing the languages.toml file from the config directory, defining a defaultContentLanguages field, or using an earlier version to mitigate the issue.

As for the config, I will be changing it from config.toml to hugo.toml to match expectations moving forward. However, in the meantime config.toml should be backwards compatible and not cause any regressions.

Edit: Just tested on the latest version. Deleting config/languages.toml did in fact fix the issue.

from hugo-liftoff.

karl-cardenas-coding avatar karl-cardenas-coding commented on July 19, 2024

I think you're right @wjh18. As much as I love Hugo, it's tough to keep up with all the changes. Backwards compatibility seems to be a common issue 😞

from hugo-liftoff.

wjh18 avatar wjh18 commented on July 19, 2024

The nice thing about Hugo is how little maintenance it requires once you deploy your site. It's just a matter of having the time to keep up with all the updates.

Anyway, HL v3.2.3 bumped the min Hugo version to 0.115.2 as a fresh start and removed the languages.toml that was causing the issue. I'll close this for now but if you still need help feel free to re-open.

from hugo-liftoff.

karl-cardenas-coding avatar karl-cardenas-coding commented on July 19, 2024

Thanks for all your help @wjh18 🎉

from hugo-liftoff.

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.