chipzoller / hugo-clarity

A theme for Hugo based on VMware Clarity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature] Mastodon profile support

stdevel opened this issue · comments

I confirm:

Type of feature (check all that apply)

  • Site functionality
  • Design (styling)
  • Site performance
  • Accessibility
  • Translations and internationalization (i18n)
  • Code improvements
  • Other (please describe below)

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

Seconding this request. Mastodon support would be great!

commented

@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.

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!

commented

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