chipzoller / hugo-clarity

A theme for Hugo based on VMware Clarity
Other
577 stars 262 forks source link

[Feature] Mastodon profile support #413

Closed stdevel closed 1 year ago

stdevel commented 1 year ago

I confirm:

Type of feature (check all that apply)

Describe the feature

It would be nice to have the possibility to specify a Mastodon profile in params.toml in addition to Twitter and others.

Preferred solution

Having an appropriate setting in params.toml would be an easy solution:

mastodon = "@stdevel@chaos.social"

Alternatives

No response

Additional Context

No response

BobPusateri commented 1 year ago

Seconding this request. Mastodon support would be great!

onweru commented 1 year ago

@stdevel, @BobPusateri

Curious, how would you like this knob i.e mastodon = "@stdevel@chaos.social" to be linked to the UI? Or is that not necessary? 😃

Typically, the twitter one, we use it for opengraph purposes.

Also, mastodon icon support was added via #404.

stdevel commented 1 year ago

Hi @onweru, oh great - thanks for pointing out to #404 - didn't know that this already exists.

I just wanted to have a Mastodon icon instead of the Twitter one in the navigation. Updating the thema and using the following lines in config/_default/menus/menu.$lang.toml did the trick:

[[social]]
  name = "mastodon"
  weight = 2
  url = "https://chaos.social/@stdevel/"

image

Thanks for the support!

onweru commented 1 year ago

You're welcome @stdevel. Would you be interested in reviewing #420?