Added a variable that template can use to know if we are publishing or previewing the site.