Help about cross-posting in front matter

I’ve used this useful post to show an “Also seen on” Bluesky icon after my blog posts with a link to my crossposted post on that platform.

I would like to add also Mastodon and Pixelfed icon as well, but I’ve no idea how to do it.

Here is a screenshot of how is looking right now:

And this is the code I implemented for doing it:

Also seen on 
{{ if .Params.bluesky }}
  <a class="u-syndication" {{ printf "href=%q" .Params.bluesky.link | safeHTMLAttr }}>
    <i class="fa-brands fa-bluesky"></i>
  </a>
{{ end }}

I use

{{ with .Params.mastodon.id }}
    <div class="social-reply press">
            <a href="https://{{ $.Params.mastodon.hostname }}/@{{ $.Params.mastodon.username }}/{{ .Params.mastodon.id }}"><i class="fa-brands fa-mastodon"></i> Mastodon</a>
    </div>
{{ end }}
1 Like

Thanks Greg for sharing! :+1: