If you want pretty links, you can add badges when linking to Lemmy communities or Mastodon accounts

This also works for any links on shields.io, but I didn’t notice the Lemmy & Mastodon links before. Please share anything else you discover while experimenting. I’ll edit in more tips as people find them


Lemmy:

You can put the image markdown inside a link markdown

  • Regular link: [link_text](LINK_URL)
  • Image link: ![](IMAGE_URL)
  • All together: [![](IMAGE_URL)](LINK_URL)
  • Page to generate image: shields.io/badges/lemmy

Make sure to drop the domain from the link URL to make the button universal:

For example:


<span style="color:#323232;">[![](https://img.shields.io/lemmy/canada%40lemmy.ca?label=canada%40lemmy.ca&amp;color=%239e090a&amp;link=https%3A%2F%2Fexample.com
</span><span style="color:#323232;">)](/c/[email protected])
</span>

/c/[email protected]

example post BEFORE: lemmy.ca/post/2890824

example post AFTER: lemmy.ca/post/2530982 (modified a few of the links)


Mastodon:

It’s listed on shields.io (link: shields.io/badges/mastodon-follow), but I had trouble getting it working. I’ll edit in instructions once I figure it out.

cwagner,

deleted_by_author

  • Loading...
  • otter,
    @otter@lemmy.ca avatar

    Oh huh, I tried a number of combinations to get the universal link but I didn’t try that one. Thanks!

    Poor bot probably can’t scan image links

    starman,
    @starman@programming.dev avatar

    That’s a really nice use of shields.io

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • [email protected]
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • Socialism
  • KbinCafe
  • TheResearchGuardian
  • Ask_kbincafe
  • oklahoma
  • feritale
  • SuperSentai
  • KamenRider
  • All magazines