Skip to content
\n

In release v0.3.20 (hugo extended v0.147.2) with the same code I've got an error:

\n
ERROR Invalid Mastodon configuration: maps.Params{\"id\":\"@salvari\", \"prefix\":\"https://mastodon.gal/\", \"title\":\"Mastodon\"}\nERROR logged 1 error(s)\n
\n

If I change my file params.toml to include:

\n
[social]\n [Mastodon]\n   id = \"@salvari\"\n   prefix = \"https://mastodon.gal/\"\n   title = \"Mastodon\"
\n

I don't get any error message but the home page has no link to my mastodon profile.
\nI've tried also [mastodon] instead of [Mastodon]

","upvoteCount":1,"answerCount":2,"acceptedAnswer":{"@type":"Answer","text":"

It's maybe a bug cause by #559

\n

However, there is a quick solution, like this:

\n
[social]\n  [social.myMastodon]\n    id = \"@salvari\"\n    prefix = \"https://mastodon.gal/\"\n    title = \"Mastodon\"\n    [social.myMastodon.icon]\n      Class = \"fa-brands fa-mastodon fa-fw\"
","upvoteCount":2,"url":"https://github.com/orgs/hugo-fixit/discussions/599#discussioncomment-13083094"}}}

Help with upgrade #599

Answered by Lruihao
salvari asked this question in Q&A
May 8, 2025 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

It's maybe a bug cause by #559

However, there is a quick solution, like this:

[social]
  [social.myMastodon]
    id = "@salvari"
    prefix = "https://mastodon.gal/"
    title = "Mastodon"
    [social.myMastodon.icon]
      Class = "fa-brands fa-mastodon fa-fw"

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@salvari
Comment options

Answer selected by salvari
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants