GeistHaus
log in · sign up

Language

gohugo.io

Returns the Language object for the given site.

2 pages link to this URL
Deprecations in v0.156.0

Background Historically, we used the terms site and project interchangeably. With monolingual projects, that was essentially correct. With multilingual projects, it was not correct, in that every language is internally represented as a separate site. So, we were a bit lazy with our word selection. With the introduction of the multidimensional content model in v0.153.0, the distinction between site and project becomes much more important. For example, a software documentation project in 4 langua...

2 inbound links website en i18ncontent-dimensions
I fixed my site's rss.xml

Warning: boring site configuration ahead! After a bit of wrangling in Hugo, I found the issue where only a truncated bit of content was showing up in people’s feed readers, instead of the full content: Copying the contents of this default RSS template from the Hugo repo to my theme’s templates/_default/ directory, I edited a few lines: First, I had to set the language parameters of my site’s config.toml, according to this link