Skip to content

[Bug]: error calling partial: partial "partials/templates/_funcs/get-page-images" not found#1774

@cnzixn

Description

@cnzixn

What happened?

schema_json.html(88)

{{- $images := partial "partials/templates/_funcs/get-page-images" . -}} 

twitter_cards.html(9)

{{- $images := partial "partials/templates/_funcs/get-page-images" . -}} 

Need to change to:

{{- $images := partial "templates/_funcs/get-page-images" . -}}{{/* Fixed */}} 

Steps to reproduce

run hugo

Hugo Version

Hugo >= 0.146.0 (Recommended - Minimum version required for PaperMod)

PaperMod Version

72615b6

What kind of devices are you seeing the problem on?

No response

What browsers are you seeing the problem on?

No response

Browser Version

No response

Relevant log output

~ $ cd /sdcard/acode/*paper .../acode/my-hugo-paper $ hugo --gc --noBuildLock Start building sites … hugo v0.148.2+extended android/arm64 BuildDate=unknown WARN Doubtful use of partial functionin{{partial "partials/templates/_funcs/get-page-images"}}), this is most likely not what you want. Consider removing superfluous prefix "partials/" from template name given as first functionargument. You can suppress this warning by adding the following to your site configuration: ignoreLogs = ['warning-partial-superfluous-prefix'] ERROR render of "/404" failed: "/sdcard/acode/my-hugo-paper/themes/PaperMod/layouts/_default/baseof.html:9:8": execute of template failed: template: 404.html:9:8: executing "404.html" at <partial "head.html" .>: error calling partial: "/sdcard/acode/my-hugo-paper/themes/PaperMod/layouts/partials/head.html:9:15": execute of template failed: template: _partials/templates/twitter_cards.html:9:15: executing "partials/templates/twitter_cards.html" at <partial "partials/templates/_funcs/get-page-images" .>: error calling partial: partial "partials/templates/_funcs/get-page-images" not found ERROR render of "/aaa" failed: "/sdcard/acode/my-hugo-paper/themes/PaperMod/layouts/_default/baseof.html:9:8": execute of template failed: template: list.html:9:8: executing "list.html" at <partial "head.html" .>: error calling partial: "/sdcard/acode/my-hugo-paper/themes/PaperMod/layouts/partials/head.html:9:15": execute of template failed: template: _partials/templates/twitter_cards.html:9:15: executing "partials/templates/twitter_cards.html" at <partial "partials/templates/_funcs/get-page-images" .>: error calling partial: partial "partials/templates/_funcs/get-page-images" not found ERROR render of "/" failed: "/sdcard/acode/my-hugo-paper/themes/PaperMod/layouts/_default/baseof.html:9:8": execute of template failed: template: list.html:9:8: executing "list.html" at <partial "head.html" .>: error calling partial: "/sdcard/acode/my-hugo-paper/themes/PaperMod/layouts/partials/head.html:9:15": execute of template failed: template: _partials/templates/twitter_cards.html:9:15: executing "partials/templates/twitter_cards.html" at <partial "partials/templates/_funcs/get-page-images" .>: error calling partial: partial "partials/templates/_funcs/get-page-images" not found ERROR render of "/sdcard/acode/my-hugo-paper/content/about.zh.md" failed: "/sdcard/acode/my-hugo-paper/themes/PaperMod/layouts/_default/baseof.html:9:8": execute of template failed: template: page.html:9:8: executing "page.html" at <partial "head.html" .>: error calling partial: "/sdcard/acode/my-hugo-paper/themes/PaperMod/layouts/partials/head.html:9:15": execute of template failed: template: _partials/templates/twitter_cards.html:9:15: executing "partials/templates/twitter_cards.html" at <partial "partials/templates/_funcs/get-page-images" .>: error calling partial: partial "partials/templates/_funcs/get-page-images" not found Total in 3424 ms Error: error building site: render: failed to render pages: render of "/sdcard/acode/my-hugo-paper/content/aaa/bbb.html" failed: "/sdcard/acode/my-hugo-paper/themes/PaperMod/layouts/_default/baseof.html:9:8": execute of template failed: template: page.html:9:8: executing "page.html" at <partial "head.html" .>: error calling partial: "/sdcard/acode/my-hugo-paper/themes/PaperMod/layouts/partials/head.html:9:15": execute of template failed: template: _partials/templates/twitter_cards.html:9:15: executing "partials/templates/twitter_cards.html" at <partial "partials/templates/_funcs/get-page-images" .>: error calling partial: partial "partials/templates/_funcs/get-page-images" not found .../acode/my-hugo-paper $ hugo --gc --noBuildLock Start building sites … hugo v0.148.2+extended android/arm64 BuildDate=unknown Total in 3764 ms Error: error building site: render: failed to render pages: failed to process "/aaa/bbb/index.html": "/data/data/com.termux/files/usr/tmp/hugo-transform-error1618137752:95:40": expected comma character or an array or object ending on line 95 and column 40 12:{^ .../acode/my-hugo-paper $ hugo --gc --noBuildLock Start building sites … hugo v0.148.2+extended android/arm64 BuildDate=unknown │ ZH ──────────────────┼───── Pages │ 854 Paginator pages │ 276 Non-page files │ 1 Static files │ 57 Processed images │ 0 Aliases │ 822 Cleaned │ 0 Total in 4562 ms .../acode/my-hugo-paper $

Repository/Source Code link where this issue can be reproduced

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions