Hi there,
I’m trying to set up ghost with identical apps in a staging and prod environment. My analytics vendor (heap) gives me different codes for “prod” vs “dev” environments to put in the analytics script in the head. Is there a convenient way in the templates to tell which environment I’m in? I know handlebars doesn’t do string comparison in its templates. I’m looking for something like:
{{#if @blog.prod }}prodSnippet{{else}}devSnippet{{/if}}
But of course, @blog.prod
isn’t a real thing. Is there something like this, or do i need to figure out how to add custom handlebars helpers?
(If it matters: I’m self-hosting but I bought my theme; I didn’t develop it myself.)