Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Error: add site dependencies: load resources: loading templates: "site/themes/hugo-PaperMod/layouts/partials/head.html:79:1": parse failed: template: partials/head.html:79: unexpected unclosed action in command #360

Conversation

cbrownstein
Copy link
Contributor

@cbrownstein cbrownstein commented Apr 14, 2021

Join lines to prevent the following error from being received:

Error: add site dependencies: load resources: loading templates: "site/themes/hugo-PaperMod/layouts/partials/head.html:79:1": parse failed: template: partials/head.html:79: unexpected unclosed action in command

NB: AFAICT, Hugo versions 0.81.0 and higher will not produce this error since those versions support newlines in template actions and commands. See: https://gohugo.io/news/0.81.0-relnotes/#newlines-in-template-actions-and-commands

@sonarcloud
Copy link

sonarcloud bot commented Apr 14, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@adityatelange
Copy link
Owner

adityatelange commented Apr 15, 2021

NB: AFAICT, Hugo versions 0.81.0 and higher will not produce this error since those versions support newlines in template actions and commands. See: https://gohugo.io/news/0.81.0-relnotes/#newlines-in-template-actions-and-commands

Yes. Should we still merge this ?

@cbrownstein
Copy link
Contributor Author

cbrownstein commented Apr 15, 2021 via email

@adityatelange adityatelange merged commit c3634e6 into adityatelange:master Apr 16, 2021
kylethedeveloper pushed a commit to kylethedeveloper/hugo-PaperMod that referenced this pull request Feb 21, 2023
Fixes errors in lower hugo versions

Error: add site dependencies: load resources: loading templates: "site/themes/hugo-PaperMod/layouts/partials/head.html:79:1": parse failed: template: partials/head.html:79: unexpected unclosed action in command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants