So I’m trying to get different content in my posts page than in my feed (specifically, it’s rendering a gfycat with their javascript include on the site, which won’t show up in a feed reader.) I’d also like to do things like add a standard email signup in a shortcode. For these things I’d need to use the scratch or the site params, which don’t seem to be available from a shortcode.
So, if there’s a way to do it, could someone tell me? If not, consider it a feature request.
The documentation does imply that, yes, but the value of the dot in the
shortcodes is the values passed into the shortcodes. {{.Scratch.Get}} in
that context always returns a zero value for me.
When the RSS template is rendered, the Page content is already rendered – including all the shortcodes. So you can pass values from the shortcodes to the template, but not the other way around.