I use some social media URLs such as LinkedIn and Twitter account as site variables (type: and I would like to know if it’s possible to use them in the markdown editor of a page?
Or is there a better way to do this?
label: LinkedIn Account
And in my text editor:
Here is my **(link: _____ text: LinkedIn)** account.
I don’t think you can use the information from the site variables in markdown, however, there is a twitter kirbytag that you could use for twitter http://getkirby.com/docs/content/text#twitter-profile-links and you could build similar custom kirbytags for your other social media links http://getkirby.com/docs/content/text#extending-kirbytext
The site variables are intended for use in your templates.
You could make use of a filter as described here.
I created a small and very basic plugin on github.
A shortcode could be used to generate the links you need (e.g.:
:linkedin: and your replacement).
Thanks guys, both of you.
I missed that part in the documentation.
Very useful. That’s exactly what I was looking for.