Hello!
I'm just getting started with Jekyll and am building my first site using this theme. It looks neat and clean :)
I wanted to add a link to my mastodon profile in the footer. I have added the following to _config.yml
:
mastodon : keunes
mastodon_server : mastodon.social # instance domain without protocol (e.g. mastodon.social)
I am recording the username and server separately, because the profile url is https://mastodon_server/@mastodon
, while the user handle (which I might like to display somewhere, later on) is like @mastodon@mastodon_server
In _data/social-media.yml
I've added mastodon, but I don't know how to reference a variable (?) from another yml file within it. I've tried the following and some other variations, but can't get it to work :)
mastodon:
url : https://{{site.author.mastodon_server}}/@
icon : fab fa-mastodon
color : 3088d4
On StackOverflow I see that it might not at all be (easily) possible. Maybe if including a variable to form a new variable isn't possible, maybe support for federated media (actually also GitLab, which could be self-hosted) could be implemented by adjusting _includes/social.html
?
If I had known how to make this work I would've sent a PR. But so this is more like a feature request to include support for Mastodon with deep support for the federated nature (splitting domain and username).
Thanks either way for providing this theme!