Syndication links

Hi, is there any functionality for showing on a blog post where the post has been cross-posted to? I’ve used plug-ins on other platforms to create a small “Shared to:” on each post and usually using Font Awesome style icons for the different links to each platform (e.g. Bluesky). A good example is the Syndication Links plug-in for WordPress. Does anyone know of anything built-in I can use or a plug-in I haven’t come across yet before I start trying to code something myself?

The information is available, so it’s up to theme and plugin developers to make use of it. I’m not sure off the top of my head which themes support it, but I skimmed the source for Tiny just now, and it looks like that theme shows syndication links to Bluesky.

If you’re comfortable editing Hugo themes yourself, the documentation you need is available here.

probably this topic helps you too:

1 Like

I’ve found the code I used for some time on my site. If you use Tiny / Sumo Theme you can put it inside: layouts/partials/microhook-after-post.html.

Below code works for Mastodon + Pixelfed + Bluesky crossposted posts.

This post also appeared on:

{{ if .Params.mastodon }}
<a class="u-syndication" href="https://mastodon.social/@username/{{ $.Params.mastodon.id }}"><i class="fa-brands fa-mastodon" style="color: #1c71d8;"></i></a>
{{ end }}

{{ if .Params.pixelfed }}
<a class="u-syndication" href="https://pixelfed.social/i/web/post/{{ $.Params.pixelfed.id }}"><i class="fa-solid fa-camera-retro" style="color: #1c71d8;"></i></a>
{{ end }}

{{ if .Params.bluesky }}
<a class="u-syndication" {{ printf "href=%q" .Params.bluesky.link | safeHTMLAttr }}>
<i class="fa-brands fa-bluesky" style="color: #1c71d8;"></i>
</a>
{{ end }}

This is great. Do you know of anything similar for Replies as well?