Closed crazyhottommy closed 6 years ago
Newer versions of Hugo have breaking changes. Therefore, either you'll need to downgrade Hugo to the previous version you were using (perhaps 0.3x) or upgrade your site to use the latest version of Academic (which is compatible with Hugo 0.4x).
Thanks! how to upgrade the site without re-editing all the changes that I have made?
The documentation is here https://sourcethemes.com/academic/docs/update/ and the release notes are here https://sourcethemes.com/academic/updates/v2.4.0/ . If you have any questions, please use the support forum http://discourse.gohugo.io/
hello @gcushen, I run hugo+blogdown+academic from RStudio (preview v1.2.616
and R v3.4.4
) recently updated both hugo (v0.51
) and hugo-academic (v3.1
) and my webpage doesn't render similar to the issue above. Any suggestions of which Hugo version would work best with the latest academic
theme?
Building sites … ERROR 2018/11/09 18:03:56 render of "page" failed: "/Users/janani/Google_Drive/Work/GitHub/jananiravi-webpage/themes/academic/layouts/project/single.html:3:19": execute of template failed: template: project/single.html:6:5: executing "project/single.html" at <partial "page_header...>: error calling partial: "/Users/janani/Google_Drive/Work/GitHub/jananiravi-webpage/themes/academic/layouts/partials/page_header.html:3:19": execute of template failed: template: partials/page_header.html:3:19: executing "partials/page_header.html" at <$page.Params.image.f...>: can't evaluate field focal_point in type interface {}
ERROR 2018/11/09 18:03:56 render of "page" failed: "/Users/janani/Google_Drive/Work/GitHub/jananiravi-webpage/themes/academic/layouts/publication/single.html:3:19": execute of template failed: template: publication/single.html:5:5: executing "publication/single.html" at <partial "page_header...>: error calling partial: "/Users/janani/Google_Drive/Work/GitHub/jananiravi-webpage/themes/academic/layouts/partials/page_header.html:3:19": execute of template failed: template: partials/page_header.html:3:19: executing "partials/page_header.html" at <$page.Params.image.f...>: can't evaluate field focal_point in type interface {}
ERROR 2018/11/09 18:03:56 render of "page" failed: "/Users/janani/Google_Drive/Work/GitHub/jananiravi-webpage/themes/academic/layouts/publication/single.html:3:19": execute of template failed: template: publication/single.html:5:5: executing "publication/single.html" at <partial "page_header...>: error calling partial: "/Users/janani/Google_Drive/Work/GitHub/jananiravi-webpage/themes/academic/layouts/partials/page_header.html:3:19": execute of template failed: template: partials/page_header.html:3:19: executing "partials/page_header.html" at <$page.Params.image.f...>: can't evaluate field focal_point in type interface {}
ERROR 2018/11/09 18:03:56 render of "page" failed: "/Users/janani/Google_Drive/Work/GitHub/jananiravi-webpage/themes/academic/layouts/project/single.html:3:19": execute of template failed: template: project/single.html:6:5: executing "project/single.html" at <partial "page_header...>: error calling partial: "/Users/janani/Google_Drive/Work/GitHub/jananiravi-webpage/themes/academic/layouts/partials/page_header.html:3:19": execute of template failed: template: partials/page_header.html:3:19: executing "partials/page_header.html" at <$page.Params.image.f...>: can't evaluate field focal_point in type interface {}
Total in 802 ms
Error: Error building site: failed to render pages: render of "page" failed: "/Users/janani/Google_Drive/Work/GitHub/jananiravi-webpage/themes/academic/layouts/_default/single.html:3:19": execute of template failed: template: _default/single.html:6:5: executing "_default/single.html" at <partial "page_header...>: error calling partial: "/Users/janani/Google_Drive/Work/GitHub/jananiravi-webpage/themes/academic/layouts/partials/page_header.html:3:19": execute of template failed: template: partials/page_header.html:3:19: executing "partials/page_header.html" at <$page.Params.image.f...>: can't evaluate field focal_point in type interface {}
All the errors seem to be pointing to the single.html
files. What change must I make in these files to get the site up and running again? Thank you for your help!
@jananiravi when updating Academic, it's necessary to follow the Update guide (see docs) and apply updates consecutively from the version that you were on (rather than jumping to the latest version). For each update, the notes in the breaking changes sections should be followed. For example, the error you experience appears to be caused by the fact these steps haven't been applied: https://sourcethemes.com/academic/updates/v3.0.0/#breaking-changes
Thank you. I will try to make these modifications and check back. Appreciate your prompt response. For instance, is the weird rendering of this page due to the same jumping versions issue: https://rladies-eastlansing.github.io/post/20180924-lightning/ (the social media icons lined up to the bottom-right)? Thanks again!
Hi there,
it was working before on my old Mac, I have a new Mac and now it gives me this error.
Thanks for looking into it. Tommy