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. :(

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.

4 participants