Skip to content

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

Merged
adityatelange merged 1 commit intoadityatelange:masterfrom
cbrownstein:fix-error-unexpected-unclosed-action-in-command
Apr 16, 2021

Conversation

@cbrownstein
Copy link
Copy Markdown
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

@sonarqubecloud
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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.

2 participants