Skip to content

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

@sonarqubecloud
Copy link

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

2 participants