Handle conversion plugin for Kirby
I have created my first Kirby plugin.
It transforms handles like @username@server.xyz into proper links, such as <a href="https://server.xyz/@username" title="@username's profile on server.xyz." class="...">@username</a>.
I developed this plugin for personal use, but it may also be useful to others.
Supported sites:
- Fediverse (Mastodon, etc.) :
@alienlebarge@social.lolchanges to @alienlebarge - Bluesky (bsky.app):
@alienlebarge.bsky.social@bsky.appchanges to @alienlebarge.bsky.social - Flickr:
@alienlebarge@flickr.comchanges to @alienlebarge - GitHub:
@alienlebarge@github.comchanges to @alienlebarge - Instagram:
@alienlebarge@instagram.comchanges to @alienlebarge - LinkedIn:
@alienlebarge@linkedin.comchanges to @alienlebarge - Micro.blog:
@alienlebarge@micro.blogchanges to @alienlebarge - Reddit:
@alienlebarge@reddit.comchanges to @alienlebarge - YouTube:
@alienlebarge@youtube.comchanges to @alienlebarge - Vimeo:
@alienlebarge@vimeo.comchanges to @alienlebarge
This is my first plugin, so I’m open to any advice.