Closed johnheenan closed 4 years ago
Thanks, this was already fixed. Duplicate of #1715
It is a bit if a stretch to say this is fixed when the fix is not in a release.
Gitlab and github users currently using CI/CD (Continuous Integration/Continuous Deployment) are affected.
As soon as I got a gitlab CI/CD build error I checked if I was using the latest release of hugo-academic. I confirmed I was.
It is not reasonable to expect me and other users to look beyond release to fix such a production issue bug.
Of course hugo-academic is superbly imaginative use of hugo templating.
Johh Heenan
You can find the compatible Hugo version for the Academic version you have in themes/academic/theme.toml
under min_version
.
I may not have got my point across.
The min_version listed of Hugo is 0.62 in theme.toml is not relevant to the issue.
There is no listed max_version of Hugo.
What is relevant is that the current production release version of Hugo, 0.72.0, used in gitlab CI/CD, causes a build crash using the current production release version of hugo-academic, v4.8.0.
That is it.
There is now another issue arising in hugo-academic of expecting CI/CD production level users to look beyond production level releases of hugo-academic to prevent a build crash when CI/CD uses the production level version of Hugo build software.
Of course we can ensure CI/CD does not use the latest production release of build software. But it is clumsy and adds additional unwanted complexity.
John Heenan
Describe the bug
Latest hugo version, 0.72.0, crashes with hugo-academic
To Reproduce
hugo
Expected behavior
Does not crash.
Technical details:
The Go template package was updated and fixed a bug which correctly marks a logical error in line 14 of themes\academic\layouts\publication\single.html
Fix
Change line 14 in above file from
to
Reference
https://discourse.gohugo.io/t/cant-give-argument-to-non-function/26028
John Heenan