madranet / hugoskeletonsite

The barest of BareBones of a Hugo theme. Hopefully of some use for complete 'noobs' to get their heads round how themes work in Hugo.
32 stars 18 forks source link

fix needed for deprecated Now command in hugo >=0.20 #2

Open out-of-order opened 5 years ago

out-of-order commented 5 years ago

I can't start hugo server. The errors seem to be because of .Now which has been deprecated since hugo 0.20 Cn you fix that for newer hugo versions?

ERROR 2018/12/18 13:32:47 render of "page" failed: "/home/micro/Schreibtisch/temp/hugo/hugoskeletonsite/themes/skeletontheme/layouts/_default/single.html:5:34": execute of template failed: template: _default/single.html:36:3: executing "_default/single.html" at <partial "footer" .>: error calling partial: "/home/micro/Schreibtisch/temp/hugo/hugoskeletonsite/themes/skeletontheme/layouts/partials/footer.html:5:34": execute of template failed: template: partials/footer.html:5:34: executing "partials/footer.html" at <.Now.Format>: can't evaluate field Now in type *hugolib.PageOutput
ERROR 2018/12/18 13:32:47 render of "home" failed: "/home/micro/Schreibtisch/temp/hugo/hugoskeletonsite/themes/skeletontheme/layouts/index.html:5:34": execute of template failed: template: index.html:25:3: executing "index.html" at <partial "footer" .>: error calling partial: "/home/micro/Schreibtisch/temp/hugo/hugoskeletonsite/themes/skeletontheme/layouts/partials/footer.html:5:34": execute of template failed: template: partials/footer.html:5:34: executing "partials/footer.html" at <.Now.Format>: can't evaluate field Now in type *hugolib.PageOutput
Total in 4 ms
Error: Error building site: failed to render pages: render of "taxonomyTerm" failed: "/home/micro/Schreibtisch/temp/hugo/hugoskeletonsite/themes/skeletontheme/layouts/_default/terms.html:5:34": execute of template failed: template: _default/terms.html:29:3: executing "_default/terms.html" at <partial "footer" .>: error calling partial: "/home/micro/Schreibtisch/temp/hugo/hugoskeletonsite/themes/skeletontheme/layouts/partials/footer.html:5:34": execute of template failed: template: partials/footer.html:5:34: executing "partials/footer.html" at <.Now.Format>: can't evaluate field Now in type *hugolib.PageOutput
madranet commented 5 years ago

Hi.

Sorry. I don't use Hugo any more. Since @spf13 stopped leading the project there have been too many breaking changes after updates, so I gave up on it. Consider this repo abandoned.