Closed gdsaxton closed 4 years ago
<$theme.light.background>: can't evaluate field background in type interface {}
This was fixed. Updating to the latest master version (see docs) should resolve the issue.
Hi,
I was already on 4.8.0. There's not a newer version, is there?
Thanks,
Greg
On Mon, Aug 31, 2020 at 7:28 PM Geo notifications@github.com wrote:
<$theme.light.background>: can't evaluate field background in type interface {}
This was fixed. Updating to the latest master version (see docs) should resolve the issue.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gcushen/hugo-academic/issues/1832#issuecomment-684100558, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA6W4EOVYCS2IQEOOO6J7TSDQW3RANCNFSM4QQ4FE6A .
I am following the tutorial to create a custom theme: https://wowchemy.com/docs/customization/#custom-theme
My root folder is academic-kickstart-benson/ -- I created a /data/themes/ folder there, pasted in minimalist.toml, renamed it as _minimalistdark.toml, and updated params.toml to reflect the new theme _minimalistdark. This works as long as I do not change minimalist.toml in any way.
What I'm looking to do is change the default from 'light' to 'dark'. I have tried changing 'light = true' to 'light = false' and I've also tried changing the line to 'dark = true.' In either of these cases the deploy through netlify breaks. Any thoughts on what might be happening here?
Thanks in advance for any help on this. I should also say a similar thing happens when I try to modify li_citation.html.
Here is the deploy log from netlify:
hugo --gc --minify -b $URL 3:29:12 PM: Building sites … ERROR 2020/08/31 19:29:12 render of "page" failed: execute of template failed: template: publication/single.html:5:3: executing "publication/single.html" at <partial "site_head" .>: error calling partial: execute of template failed: template: partials/site_head.html:46:5: executing "partials/site_head.html" at <partial "functions/parse_theme" .>: error calling partial: "/opt/build/repo/themes/academic/layouts/partials/functions/parse_theme.html:41:35": execute of template failed: template: partials/functions/parse_theme.html:41:35: executing "partials/functions/parse_theme.html" at <$theme.light.background>: can't evaluate field background in type interface {} ERROR 2020/08/31 19:29:12 render of "page" failed: execute of template failed: template: publication/single.html:5:3: executing "publication/single.html" at <partial "site_head" .>: error calling partial: execute of template failed: template: partials/site_head.html:46:5: executing "partials/site_head.html" at <partial "functions/parse_theme" .>: error calling partial: "/opt/build/repo/themes/academic/layouts/partials/functions/parse_theme.html:41:35": execute of template failed: template: partials/functions/parse_theme.html:41:35: executing "partials/functions/parse_theme.html" at <$theme.light.background>: can't evaluate field background in type interface {} ERROR 2020/08/31 19:29:12 render of "page" failed: execute of template failed: template: publication/single.html:5:3: executing "publication/single.html" at <partial "site_head" .>: error calling partial: execute of template failed: template: partials/site_head.html:46:5: executing "partials/site_head.html" at <partial "functions/parse_theme" .>: error calling partial: "/opt/build/repo/themes/academic/layouts/partials/functions/parse_theme.html:41:35": execute of template failed: template: partials/functions/parse_theme.html:41:35: executing "partials/functions/parse_theme.html" at <$theme.light.background>: can't evaluate field background in type interface {} ERROR 2020/08/31 19:29:12 render of "page" failed: execute of template failed: template: publication/single.html:5:3: executing "publication/single.html" at <partial "site_head" .>: error calling partial: execute of template failed: template: partials/site_head.html:46:5: executing "partials/site_head.html" at <partial "functions/parse_theme" .>: error calling partial: "/opt/build/repo/themes/academic/layouts/partials/functions/parse_theme.html:41:35": execute of template failed: template: partials/functions/parse_theme.html:41:35: executing "partials/functions/parse_theme.html" at <$theme.light.background>: can't evaluate field background in type interface {} Total in 276 ms 3:29:12 PM: Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: publication/single.html:5:3: executing "publication/single.html" at <partial "site_head" .>: error calling partial: execute of template failed: template: partials/site_head.html:46:5: executing "partials/site_head.html" at <partial "functions/parse_theme" .>: error calling partial: "/opt/build/repo/themes/academic/layouts/partials/functions/parse_theme.html:41:35": execute of template failed: template: partials/functions/parse_theme.html:41:35: executing "partials/functions/parse_theme.html" at <$theme.light.background>: can't evaluate field background in type interface {}