zwbetz-gh / cupper-hugo-theme

An accessibility-friendly Hugo theme, ported from the original Cupper project.
https://cupper-hugo-theme.netlify.app/
MIT License
301 stars 190 forks source link

Error when create a new post #68

Closed mateusfg7 closed 2 years ago

mateusfg7 commented 2 years ago

Describe the bug Hugo show an template error when create a new post.

Error: add site dependencies: load resources: loading templates: "/tmp/my-hugo/bug-with-cupper/themes/cupper-hugo-theme/layouts/partials/head.html:14:1": parse failed: template: partials/head.html:14: unclosed action

To Reproduce Just run hugo new posts/my-first-post.md with clean install of cupper theme and configuration.

Expected behavior Create a new markdown post based on Cupper layout.

Screenshots image

zwbetz-gh commented 2 years ago

So this is actually not an issue :)

As mentioned in the readme: https://github.com/zwbetz-gh/cupper-hugo-theme#minimum-hugo-version

You need to install the minimum required hugo version.

Newer versions of hugo support multi-line templates 👍