luizdepra / hugo-coder

A minimalist blog theme for hugo.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't evaluate field twitter in type []interface {}

freekvh opened this issue · comments

Describe the problem:

The site does not build, gives an error related to twitter (because it is now called X perhaps?). I don't have any twitter references on my site btw.

Steps to reproduce:

git pull latest version of this theme

run hugo

Observed Results:

I get the error described above, website is not updated

Relevant code exceptions or logs

hugo
Start building sites … 
hugo v0.120.1+extended linux/amd64 BuildDate=unknown

ERROR render of "page" failed: "/home/freek/projects/xx.bio/themes/hugo-coder/layouts/_default/baseof.html:6:5": execute of template failed: template: _default/single.html:6:5: executing "_default/single.html" at <partial "head.html" .>: error calling partial: "/home/freek/projects/xx.bio/themes/hugo-coder/layouts/partials/head.html:1:3": execute of template failed: template: partials/head.html:1:3: executing "partials/head.html" at <partial "head/meta-tags.html" .>: error calling partial: execute of template failed: template: _internal/twitter_cards.html:25:9: executing "_internal/twitter_cards.html" at <site>: can't evaluate field twitter in type []interface {}
Total in 504 ms
Error: error building site: render: failed to render pages: render of "page" failed: "/home/freek/projects/x.bio/themes/hugo-coder/layouts/_default/baseof.html:6:5": execute of template failed: template: _default/single.html:6:5: executing "_default/single.html" at <partial "head.html" .>: error calling partial: "/home/freek/projects/xx.bio/themes/hugo-coder/layouts/partials/head.html:1:3": execute of template failed: template: partials/head.html:1:3: executing "partials/head.html" at <partial "head/meta-tags.html" .>: error calling partial: execute of template failed: template: _internal/twitter_cards.html:25:9: executing "_internal/twitter_cards.html" at <site>: can't evaluate field twitter in type []interface {}

I believe this to be related? I'm sorry I don't fully understand the details:
gohugoio/hugo#11658

Apologies, this was solved by updating hugo itself. Have a nice day and keep up the good work.