Hi!
I have already read other similar posts, but - although I opened an issue on the PaperMod repository - the problem remains.
Hugo version: hugo v0.126.1+extended darwin/arm64 BuildDate=2024-05-15T10:42:34Z VendorInfo=brew
PaperMod version: latest - branch v7.0
Here is my website (missing theme folders): https://github.com/nicfab/notes.
I don’t know where is the problem.
Is there anyone who can help me?
Reference:
https://github.com/adityatelange/hugo-PaperMod/issues/1524
It seems like your question has been answered.
That answer didn’t solve my problem.
That’s the reason why I wrote here.
You need to update the theme. Version 7 was released over a year ago, and the fix was implemented after that time.
I already did it, but the problem remains.
I also tried to create a new website to verify if there were issues with my previous conf.
This is your site, updated to use latest version:
git clone --recurse-submodules https://github.com/jmooring/hugo-forum-topic-50026
cd hugo-forum-topic-50026
hugo server
I don’t see a problem.
Thank you very much! You are very kind.
I don’t know what the problem was and what ‘possible’ mess I had created.
I will delete my repository.
Thanks again.
No problem. Let me know when I can delete the temporary repository referenced above.
You can delete the the temporary repository.
I cloned it locally.
Done.
Here, again.
I have the same issue with another site.
My considerations:
- If I set up the website by cloning the PaperMod repository, it works, but I see the span tags.
- If I set up the website using the
git submodule
command, I will receive some errors.
I don’t understand what it’s happened.
I am using Hugo on my Mac M1.
What errors?
Always the span tag on the pages.
My config:
- MacOS Sonoma 14.5
- Hugo version: hugo v0.126.1+extended darwin/arm64 BuildDate=2024-05-15T10:42:34Z VendorInfo=brew
My steps:
hugo new site sitename
cd sitename
git init
git submodule add --depth=1 https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod
git submodule add https://github.com/holehan/hugo-components-matomo.git themes/matomo
git submodule add https://github.com/Hanzei/hugo-component-osm.git themes/osm
cd themes/PaperMod
git checkout -b v7.0
- set up the config.yaml - /contents - /layout - /static
- hugo server
Why? v7.0 was released over a year ago and doesn’t contain the fix.
Actually, I don’t understand this at all. I missed that you are creating a new branch with the -b
flag? Why are you doing this?
And this works fine for me:
hugo new site sitename
cd sitename
git init
git submodule add --depth=1 https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod
git submodule add https://github.com/holehan/hugo-components-matomo.git themes/matomo
git submodule add https://github.com/Hanzei/hugo-component-osm.git themes/osm
echo "theme = ['PaperMod','matomo','osm']" >> hugo.toml
hugo new content/posts/post-1.md
echo "foo bar baz" >> content/posts/post-1.md
hugo server -D
Really, I already have a website, but after updating PaperMod, I see the span tags.
Thus, I am trying to set up ex novo a website copying the content in the new one.
See my test above. No problems. I’m testing with Hugo v0.126.1.
I will try again.
Thank you for your support @jmooring.
Here are the errors:
ERROR render of "home" failed: "/Users/nfabiano/Documents/Hugo/fabiano01/layouts/_default/baseof.html:5:8": execute of template failed: template: _default/list.html:5:8: executing "_default/list.html" at <partial "head.html" .>: error calling partial: execute of template failed: template: partials/templates/opengraph.html:13:15: executing "partials/templates/opengraph.html" at <partial "partials/templates/_funcs/get-page-images" .>: error calling partial: "/Users/nfabiano/Documents/Hugo/fabiano01/themes/PaperMod/layouts/partials/templates/_funcs/get-page-images.html:22:10": execute of template failed: template: partials/templates/_funcs/get-page-images.html:22:10: executing "partials/templates/_funcs/get-page-images.html" at <$imgParams>: range can't iterate over s
ERROR render of "section" failed: "/Users/nfabiano/Documents/Hugo/fabiano01/layouts/_default/baseof.html:5:8": execute of template failed: template: _default/list.html:5:8: executing "_default/list.html" at <partial "head.html" .>: error calling partial: execute of template failed: template: partials/templates/opengraph.html:13:15: executing "partials/templates/opengraph.html" at <partial "partials/templates/_funcs/get-page-images" .>: error calling partial: "/Users/nfabiano/Documents/Hugo/fabiano01/themes/PaperMod/layouts/partials/templates/_funcs/get-page-images.html:22:10": execute of template failed: template: partials/templates/_funcs/get-page-images.html:22:10: executing "partials/templates/_funcs/get-page-images.html" at <$imgParams>: range can't iterate over s
ERROR render of "404" failed: "/Users/nfabiano/Documents/Hugo/fabiano01/layouts/_default/baseof.html:5:8": execute of template failed: template: 404.html:5:8: executing "404.html" at <partial "head.html" .>: error calling partial: execute of template failed: template: partials/templates/opengraph.html:13:15: executing "partials/templates/opengraph.html" at <partial "partials/templates/_funcs/get-page-images" .>: error calling partial: "/Users/nfabiano/Documents/Hugo/fabiano01/themes/PaperMod/layouts/partials/templates/_funcs/get-page-images.html:22:10": execute of template failed: template: partials/templates/_funcs/get-page-images.html:22:10: executing "partials/templates/_funcs/get-page-images.html" at <$imgParams>: range can't iterate over s
ERROR render of "page" failed: "/Users/nfabiano/Documents/Hugo/fabiano01/layouts/_default/baseof.html:5:8": execute of template failed: template: _default/archives.html:5:8: executing "_default/archives.html" at <partial "head.html" .>: error calling partial: execute of template failed: template: partials/templates/opengraph.html:13:15: executing "partials/templates/opengraph.html" at <partial "partials/templates/_funcs/get-page-images" .>: error calling partial: "/Users/nfabiano/Documents/Hugo/fabiano01/themes/PaperMod/layouts/partials/templates/_funcs/get-page-images.html:22:10": execute of template failed: template: partials/templates/_funcs/get-page-images.html:22:10: executing "partials/templates/_funcs/get-page-images.html" at <$imgParams>: range can't iterate over s
Built in 62 ms
Error: error building site: render: failed to render pages: render of "taxonomy" failed: "/Users/nfabiano/Documents/Hugo/fabiano01/layouts/_default/baseof.html:5:8": execute of template failed: template: _default/terms.html:5:8: executing "_default/terms.html" at <partial "head.html" .>: error calling partial: execute of template failed: template: partials/templates/opengraph.html:13:15: executing "partials/templates/opengraph.html" at <partial "partials/templates/_funcs/get-page-images" .>: error calling partial: "/Users/nfabiano/Documents/Hugo/fabiano01/themes/PaperMod/layouts/partials/templates/_funcs/get-page-images.html:22:10": execute of template failed: template: partials/templates/_funcs/get-page-images.html:22:10: executing "partials/templates/_funcs/get-page-images.html" at <$imgParams>: range can't iterate over s
Is there any incompatibility with the oldest posts and pages?
How have you defined [params.images] in your site configuration? It should be an array, not a string.