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.lol
changes to @alienlebarge - Bluesky (bsky.app):
@alienlebarge.bsky.social@bsky.app
changes to @alienlebarge.bsky.social - Flickr:
@alienlebarge@flickr.com
changes to @alienlebarge - GitHub:
@alienlebarge@github.com
changes to @alienlebarge - Instagram:
@alienlebarge@instagram.com
changes to @alienlebarge - LinkedIn:
@alienlebarge@linkedin.com
changes to @alienlebarge - Micro.blog:
@alienlebarge@micro.blog
changes to @alienlebarge - Reddit:
@alienlebarge@reddit.com
changes to @alienlebarge - YouTube:
@alienlebarge@youtube.com
changes to @alienlebarge - Vimeo:
@alienlebarge@vimeo.com
changes to @alienlebarge
This is my first plugin, so I’m open to any advice.