You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like the parameters with upper-case characters don't recognition with 'isset' function.
For example, config.toml has parameter googleAnalytics = "UA-12345678-123"
But I get the message 'You must set a googleAnalytics UA-Code within the global config.toml Params.' on the page.
I've made a changes in the file themes\gohugo-amp\layouts\partials\amp\google-analytics.html:
from {{ if isset $.Site.Params "googleAnalytics" }}
to {{ if isset $.Site.Params "googleanalytics" }}
and everything is working now.
But the strings: {{ printf "%s" $.Site.Params.googleAnalytics }} {{ printf "%s" $.Site.Params.googleanalytics }}
work both.
The same problem in the file 'app-banner-header.html' and others.
The text was updated successfully, but these errors were encountered:
Looks like the parameters with upper-case characters don't recognition with 'isset' function.
For example, config.toml has parameter
googleAnalytics = "UA-12345678-123"
But I get the message 'You must set a googleAnalytics UA-Code within the global config.toml Params.' on the page.
I've made a changes in the file themes\gohugo-amp\layouts\partials\amp\google-analytics.html:
from
{{ if isset $.Site.Params "googleAnalytics" }}
to
{{ if isset $.Site.Params "googleanalytics" }}
and everything is working now.
But the strings:
{{ printf "%s" $.Site.Params.googleAnalytics }}
{{ printf "%s" $.Site.Params.googleanalytics }}
work both.
The same problem in the file 'app-banner-header.html' and others.
The text was updated successfully, but these errors were encountered: