Comments (6)
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.
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.
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.
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.
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.
Thanks for all your help @wjh18 🎉
from hugo-liftoff.
Related Issues (20)
- Disqus embed color scheme breaks on toggle HOT 1
- Disable Projects HOT 1
- How do I change the home image to not be grayscale? HOT 4
- Enhancements for next major version - drop your suggestions here HOT 1
- Optionally disable projects section and allow custom posts/projects permalinks HOT 2
- Insert image insie post HOT 2
- Not sure if this is a Bug, or problem with my Text Editor (VS Codium) HOT 2
- Add Mastodon to social links HOT 1
- Request: linking example site on https://themes.gohugo.io/themes/hugo-liftoff/ HOT 3
- Question: changing icon color(s) or font HOT 3
- Mastodon Link Verification HOT 2
- Bug - Feature image not working HOT 5
- Align the dropdown menu with header HOT 2
- layouts: image: Template renders wrong images due to glob matching.
- Location of security settings for 'newContentEditor'
- am i doing something wrong with netlify deployment? HOT 8
- ADD Social link
- Module "hugo-liftoff" is not compatible with hugo v0.111.3+extended linux/amd64
- Not compatible with hugo v0.123 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hugo-liftoff.