Anatole: Partials Footer

Created on 18 Mar 2021  ·  7Comments  ·  Source: lxndrblz/anatole

Hello. I get an error when trying to build on Netlify related to the partials/footer.html:
: can't evaluate field IsProduction in type interface {}
Is there something I'm missing? I am new at working with Hugo.. Thanks.

bug

All 7 comments

@snowfoxboots Would you mind sharing what Hugo version you are using?

hugo v0.81.0+extended darwin/amd64

@lxndrblz Here's the version I use as I included that line as part of the GA4 analytics request:

hugo v0.81.0-59D15C97 windows/amd64 BuildDate=2021-02-19T17:07:12Z VendorInfo=gohugoio

Though I don't use Netlify

I imagine it's caused by the following if clause:
{{- if and (hugo.IsProduction) (.Site.Params.gtagId) -}}
Though, that shouldn't be an issue. I'll do some research and report back.

@snowfoxboots Would you mind sharing the full error messaging you are seeing in the netlify console?

@snowfoxboots Could you please also share your netlify.toml?

Ah this is my mistake, I didn't update the newest version on the netlify.toml file. It does work.

@snowfoxboots That was a quick fix. Please let me know, if you are still running into another issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Corfucinas picture Corfucinas  ·  5Comments

abraithwaite picture abraithwaite  ·  4Comments

PiotrWachulec picture PiotrWachulec  ·  4Comments

PiotrWachulec picture PiotrWachulec  ·  6Comments

GhostBasenji picture GhostBasenji  ·  5Comments