From 15a2eaab5e40c2eecab114a7353c696172df8366 Mon Sep 17 00:00:00 2001 From: Tom Doe Date: Fri, 4 Oct 2019 19:32:18 +0200 Subject: [PATCH] Update isset.md (#900) Added a sentence to the warning in regards to accessing front matter keys from within shortcodes. --- content/en/functions/isset.md | 1 + 1 file changed, 1 insertion(+) diff --git a/content/en/functions/isset.md b/content/en/functions/isset.md index 8f2c3f7ad..d6aa2b597 100644 --- a/content/en/functions/isset.md +++ b/content/en/functions/isset.md @@ -27,5 +27,6 @@ Takes either a slice, array, or channel and an index or a map and a key as input {{% warning %}} All site-level configuration keys are stored as lower case. Therefore, a `myParam` key-value set in your [site configuration file](/getting-started/configuration/) needs to be accessed with `{{if isset .Site.Params "myparam"}}` and *not* with `{{if isset .Site.Params "myParam"}}`. Note that you can still access the same config key with `.Site.Params.myParam` *or* `.Site.Params.myparam`, for example, when using [`with`](/functions/with). +This restriction also applies when accessing page-level front matter keys from within [shortcodes](/content-management/shortcodes/). {{% /warning %}}