Hi, I made a small shortcode to use external links inside my content markdown files:
<a href="{{ index .Params 0 }}" target="_blank">{{ index .Params 1 }}</a>
It works and outputs fine if I give it typed values:
{{% external-link mylink mytext %}}
But is it possible to use values from my site’s config.toml file? In there, I have:
[params]
Somelink = "https://somelink.com"
I want to do something like:
{{% external-link .Site.Params.Somelink mytext %}}
But it just outputs the shortcode text itself.