I want to do something like this:
$.Site.Data.[.Params.data]
For example:
I have 3 files:
/data/Social.json
{
"twitter": "https://twitter.com/intent/tweet?text=tweet%20something%20-%20{url}",
"linkedin": "https://www.linkedin.com/shareArticle?mini=true&url={url}&title=title&summary=summary"
}
/content/article.md
---
shareOn: 'twitter'
---
/layouts/baseof.html
{{ $.Site.Data.Social.[.Params.shareOn] }}
Result is expected to return https://twitter.com/intent/tweet?text=tweet%20something%20-%20{url}
Is there anyway to do so?
[Update - same date - 11h +7] Add context. Sorry about this, I wrote this on tablet so it’s lack of context. I hope my update will make my question be more clear. Btw, @zwbetz suggestion seems like the one I need. I will report immediately after I try it. Thanks