Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update author method and IsMultilingual method #875

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

loulazynote
Copy link

New Hugo version duplicate .Site.IsMultiLingual and .Site.Author, So I replace these method to hugo.IsMultilingual and .Site.Params.author.
It needs to add a config option in config.toml file. (New Hugo version was renamed to hugo.toml)

[params.author]
email = "[email protected]"
link = ""
name = "AuthorName"
picture = "/images/logo.png"

@loulazynote
Copy link
Author

Oh!! Sorry... maybe your CI environment needs to update Hugo's new version.

@Briley-Bibi
Copy link

New Hugo version duplicate .Site.IsMultiLingual and .Site.Author, So I replace these method to hugo.IsMultilingual and .Site.Params.author. It needs to add a config option in config.toml file. (New Hugo version was renamed to hugo.toml)

[params.author]
email = "[email protected]"
link = ""
name = "AuthorName"
picture = "/images/logo.png"

I would like to ask where is this written " .Site.IsMultiLingual and .Site.Author"? I didn't find it. Could you explain the specific modification method?

@KenjiEndo15
Copy link

I would like to ask where is this written " .Site.IsMultiLingual and .Site.Author"? I didn't find it. Could you explain the specific modification method?

It's written in the ERROR log when serving the website, for example:

$: hugo serve --disableFastRender

ERROR deprecated: .Site.Author was deprecated in Hugo v0.124.0 and will be removed in Hugo 0.137.0. Implement taxonomy 'author' or use .Site.Params.Author instead.
ERROR deprecated: .Site.IsMultiLingual was deprecated in Hugo v0.124.0 and will be removed in Hugo 0.137.0. Use hugo.IsMultilingual instead.
Built in 101 ms
Error: error building site: logged 2 error(s)

I'm using Hugo in version 0.136.5 (v0.136.5)

@kingcanfish
Copy link

same issue , I don't think anyone maintains this repository now. :(

@alphanoah
Copy link

same issue , I don't think anyone maintains this repository now. :(

My solution is to change the Hugo version of the build environment to 0.135.0 (higher versions have been tried but still result in errors and cannot build), which allows the build to succeed. The build warning has changed to WARN deprecated instead of ERROR deprecated. This version issue can only be temporarily resolved this way for now.

@shesl-meow
Copy link

shesl-meow commented Nov 11, 2024

Is there any fork version that can be continuous maintain? Seem like no one deal with this issues

@sylvainpelissier
Copy link

Is there any fork version that can be continuous maintain? Seem like no one deal with this issues

Personally I switched to the FixIt theme: https://github.com/hugo-fixit/FixIt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants