Page MenuHomePhorge

PaperMod compatibility issues with Hugo 0.152.0+
Closed, ResolvedPublicDEFECT

Description

Pre-commit hooks are successful, but there's an error:

1WARN Doubtful use of partial function in {{ 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 function argument.
2You can suppress this warning by adding the following to your site configuration:
3ignoreLogs = ['warning-partial-superfluous-prefix']
4ERROR render of "/" failed: "/home/nawan/fossils/www/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: "/home/nawan/fossils/www/themes/PaperMod/layouts/partials/head.html:13:15": 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: partial "partials/templates/_funcs/get-page-images" not found
5ERROR render of "/home/nawan/fossils/www/content/archive.md" failed: "/home/nawan/fossils/www/themes/PaperMod/layouts/_default/baseof.html:9:8": execute of template failed: template: archives.html:9:8: executing "archives.html" at <partial "head.html" .>: error calling partial: "/home/nawan/fossils/www/themes/PaperMod/layouts/partials/head.html:13:15": 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: partial "partials/templates/_funcs/get-page-images" not found
6ERROR render of "/categories" failed: "/home/nawan/fossils/www/themes/PaperMod/layouts/_default/baseof.html:9:8": execute of template failed: template: _default/terms.html:9:8: executing "_default/terms.html" at <partial "head.html" .>: error calling partial: "/home/nawan/fossils/www/themes/PaperMod/layouts/partials/head.html:13:15": 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: partial "partials/templates/_funcs/get-page-images" not found
7ERROR render of "/categories/film-&-tv" failed: "/home/nawan/fossils/www/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: "/home/nawan/fossils/www/themes/PaperMod/layouts/partials/head.html:13:15": 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: partial "partials/templates/_funcs/get-page-images" not found
8Total in 837 ms
9Error: error building site: render: failed to render pages: render of "/404" failed: "/home/nawan/fossils/www/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: "/home/nawan/fossils/www/themes/PaperMod/layouts/partials/head.html:13:15": 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: partial "partials/templates/_funcs/get-page-images" not found

Upstream bug report: https://github.com/adityatelange/hugo-PaperMod/issues/1719.

Event Timeline

nawan changed the task status from Open to Stalled.Feb 10 2026, 23:52

This patch should fix it.

1From abe66c82bebee9dae5fb91df429a16f1fd5c363c Mon Sep 17 00:00:00 2001
2From: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
3Date: Mon, 14 Apr 2025 17:46:51 -0700
4Subject: [PATCH 1/2] Make things work in 0.146+
5
6---
7 layouts/partials/head.html | 8 ++++----
8 layouts/partials/templates/schema_json.html | 2 +-
9 layouts/partials/templates/twitter_cards.html | 2 +-
10 theme.toml | 2 +-
11 4 files changed, 7 insertions(+), 7 deletions(-)
12
13diff --git a/layouts/partials/head.html b/layouts/partials/head.html
14index 3e55c67007..ae6450abe1 100644
15--- a/layouts/partials/head.html
16+++ b/layouts/partials/head.html
17@@ -150,8 +150,8 @@
18
19 {{- /* Misc */}}
20 {{- if hugo.IsProduction | or (eq site.Params.env "production") }}
21-{{- template "_internal/google_analytics.html" . }}
22-{{- template "partials/templates/opengraph.html" . }}
23-{{- template "partials/templates/twitter_cards.html" . }}
24-{{- template "partials/templates/schema_json.html" . }}
25+{{- partial "google_analytics.html" . }}
26+{{- partial "templates/opengraph.html" . }}
27+{{- partial "templates/twitter_cards.html" . }}
28+{{- partial "templates/schema_json.html" . }}
29 {{- end -}}
30diff --git a/layouts/partials/templates/schema_json.html b/layouts/partials/templates/schema_json.html
31index dc3bfd6a0d..8a4efb41c9 100644
32--- a/layouts/partials/templates/schema_json.html
33+++ b/layouts/partials/templates/schema_json.html
34@@ -85,7 +85,7 @@
35 {{ (path.Join .RelPermalink .Params.cover.image ) | absURL }},
36 {{- end}}
37 {{- else }}
38- {{- $images := partial "partials/templates/_funcs/get-page-images" . -}}
39+ {{- $images := partial "templates/_funcs/get-page-images" . -}}
40 {{- with index $images 0 -}}
41 "image": {{ .Permalink }},
42 {{- end }}
43diff --git a/layouts/partials/templates/twitter_cards.html b/layouts/partials/templates/twitter_cards.html
44index 6b0d59bd1d..a6e1d05dd0 100644
45--- a/layouts/partials/templates/twitter_cards.html
46+++ b/layouts/partials/templates/twitter_cards.html
47@@ -6,7 +6,7 @@
48 <meta name="twitter:image" content="{{ (path.Join .RelPermalink .Params.cover.image ) | absURL }}">
49 {{- end}}
50 {{- else }}
51-{{- $images := partial "partials/templates/_funcs/get-page-images" . -}}
52+{{- $images := partial "templates/_funcs/get-page-images" . -}}
53 {{- with index $images 0 -}}
54 <meta name="twitter:card" content="summary_large_image">
55 <meta name="twitter:image" content="{{ .Permalink }}">
56diff --git a/theme.toml b/theme.toml
57index 391b248545..e4352b960b 100644
58--- a/theme.toml
59+++ b/theme.toml
60@@ -38,7 +38,7 @@ features = [
61 "scroll-to-top",
62 "search"
63 ]
64-min_version = "0.125.7"
65+min_version = "0.146.0"
66
67 [author]
68 name = "Aditya Telange"
69
70From 32f2e0e3d19ac7e0d990dd09f11a9d2302121d43 Mon Sep 17 00:00:00 2001
71From: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
72Date: Mon, 14 Apr 2025 17:48:55 -0700
73Subject: [PATCH 2/2] Versioning
74
75---
76 .github/ISSUE_TEMPLATE/bug.yaml | 4 ++--
77 .github/workflows/gh-pages.yml | 4 ++--
78 README.md | 2 +-
79 layouts/_default/baseof.html | 4 ++--
80 4 files changed, 7 insertions(+), 7 deletions(-)
81
82diff --git a/.github/ISSUE_TEMPLATE/bug.yaml b/.github/ISSUE_TEMPLATE/bug.yaml
83index 0cee3ee9d0..d7d7656786 100644
84--- a/.github/ISSUE_TEMPLATE/bug.yaml
85+++ b/.github/ISSUE_TEMPLATE/bug.yaml
86@@ -39,8 +39,8 @@ body:
87 label: Hugo Version
88 description: What version of Hugo are you running?
89 options:
90- - Hugo >= 0.125.7 (Recommended - Minimum version required for PaperMod)
91- - Hugo < 0.125.7 (Incompatible - Not recommended to build PaperMod on lower versions)
92+ - Hugo >= 0.146.0 (Recommended - Minimum version required for PaperMod)
93+ - Hugo < 0.146.0 (Incompatible - Not recommended to build PaperMod on lower versions)
94 validations:
95 required: true
96 - type: input
97diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml
98index 92b859f58f..7dc6f1c392 100644
99--- a/.github/workflows/gh-pages.yml
100+++ b/.github/workflows/gh-pages.yml
101@@ -15,7 +15,7 @@ on:
102 hugoVersion:
103 description: "Hugo Version"
104 required: false
105- default: "0.125.7"
106+ default: "0.146.0"
107
108 # Allow one concurrent deployment
109 concurrency:
110@@ -38,7 +38,7 @@ jobs:
111 build:
112 runs-on: ubuntu-latest
113 env:
114- HUGO_VERSION: ${{ github.event.inputs.hugoVersion || '0.125.7' }}
115+ HUGO_VERSION: ${{ github.event.inputs.hugoVersion || '0.146.0' }}
116 steps:
117 - name: Install Hugo CLI
118 run: |
119diff --git a/README.md b/README.md
120index 1c00072808..7b2956e6df 100644
121--- a/README.md
122+++ b/README.md
123@@ -11,7 +11,7 @@
124 **ExampleSite** can be found here: [**exampleSite**](https://github.com/adityatelange/hugo-PaperMod/tree/exampleSite). Demo is built up with [exampleSite](https://github.com/adityatelange/hugo-PaperMod/tree/exampleSite) as source.
125
126 [![hugo-papermod](https://img.shields.io/badge/Hugo--Themes-@PaperMod-blue)](https://themes.gohugo.io/themes/hugo-papermod/)
127-[![Minimum Hugo Version](https://img.shields.io/static/v1?label=min-HUGO-version&message=>=v0.125.7&color=blue&logo=hugo)](https://github.com/gohugoio/hugo/releases/tag/v0.125.7)
128+[![Minimum Hugo Version](https://img.shields.io/static/v1?label=min-HUGO-version&message=>=v0.146.0&color=blue&logo=hugo)](https://github.com/gohugoio/hugo/releases/tag/v0.146.0)
129 [![Discord](https://img.shields.io/discord/971046860317921340?label=Discord&logo=discord)](https://discord.gg/ahpmTvhVmp)
130 [![GitHub](https://img.shields.io/github/license/adityatelange/hugo-PaperMod)](https://github.com/adityatelange/hugo-PaperMod/blob/master/LICENSE)
131 ![code-size](https://img.shields.io/github/languages/code-size/adityatelange/hugo-PaperMod)
132diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
133index 94e7d5857d..db3a50688c 100644
134--- a/layouts/_default/baseof.html
135+++ b/layouts/_default/baseof.html
136@@ -1,5 +1,5 @@
137-{{- if lt hugo.Version "0.125.7" }}
138-{{- errorf "=> hugo v0.125.7 or greater is required for hugo-PaperMod to build " }}
139+{{- if lt hugo.Version "0.146.0" }}
140+{{- errorf "=> hugo v0.146.0 or greater is required for hugo-PaperMod to build " }}
141 {{- end -}}
142
143 <!DOCTYPE html>

nawan moved this task from Current to Done on the Sprints (30 Jan - 19 Feb 2026) board.

Build success without error after T77: Update PaperMod to the latest version. For now, I should stick with the latest version of PaperMod because I use the latest version of Hugo from Fedora.

nawan@karl-marx:~/fossils/www$ hugo-deploy.sh
Building Hugo site...
Start building sites …
hugo v0.152.2+extended linux/amd64 BuildDate=2025-12-14T00:00:00+00:00 VendorInfo=Fedora:0.152.2-1.fc42


                  │ ID
──────────────────┼─────
 Pages            │ 210
 Paginator pages  │   9
 Non-page files   │   0
 Static files     │  46
 Processed images │   0
 Aliases          │  89
 Cleaned          │   0

Total in 1113 ms
Syncing files to server...
sending incremental file list
./
404.html
index.html
index.json
index.xml
robots.txt
sitemap.xml
archives/index.html
assets/css/stylesheet.css
assets/js/search.js
categories/index.html
categories/index.xml
categories/film--tv/index.html
categories/film--tv/index.xml
categories/film--tv/page/1/index.html
categories/meta/index.html
categories/meta/index.xml
categories/meta/page/1/index.html
categories/pendidikan/index.html
categories/pendidikan/index.xml
categories/pendidikan/page/1/index.html
categories/sembarang/index.html
categories/sembarang/index.xml
categories/sembarang/page/1/index.html
categories/sindiran/index.html
categories/sindiran/index.xml
categories/sindiran/page/1/index.html
categories/teknologi/index.html
categories/teknologi/index.xml
categories/teknologi/page/1/index.html
categories/teknologi/page/2/index.html
categories/tutorial/index.html
categories/tutorial/index.xml
categories/tutorial/page/1/index.html
contact/index.html
page/1/index.html
page/2/index.html
page/3/index.html
page/4/index.html
page/5/index.html
post/index.html
post/index.xml
post/2022-01-27-halo-ini-adalah-postingan-pertama/index.html
post/after-film/index.html
post/bagi-telkomsel-satu-hari-bukanlah-24-jam/index.html
post/balada-si-roy-kisah-seorang-remaja-yang-kehilangan-arah/index.html
post/belajar-dari-pembunuhan-samantha-josephson/index.html
post/blog-ini-bebas-pelacak/index.html
post/cara-agar-tidak-miskin-setelah-menelepon-call-center/index.html
post/dongeng-tentang-negara-yang-gagal/index.html
post/enpass/index.html
post/ganti-menteri-ganti-kurikulum/index.html
post/kenapa-kamu-harus-mengaktifkan-pengalihan-https/index.html
post/kenapa-kartu-uang-elektronik-tidak-terintegrasi-dengan-gpn/index.html
post/ketika-barang-tertinggal-di-krl/index.html
post/memaknai-peran-kontribusi-individual-terhadap-negara-dalam-konteks-kemerdekaan/index.html
post/membuat-perpustakaan-daring-pribadi/index.html
post/mengecualikaan-situs-web-dari-cloudflare-warp/index.html
post/obsidian/index.html
post/page/1/index.html
post/page/2/index.html
post/page/3/index.html
post/page/4/index.html
post/page/5/index.html
post/satu-hari-di-badui/index.html
post/surat-terbuka-untuk-blogger/index.html
post/tentang-telepon-pintar-yang-menjadi-usang/index.html
post/tidak-bisa-copy-paste-ke-whatsapp-web-di-firefox/index.html
search/index.html
tags/index.html
tags/index.xml
tags/after/index.html
tags/after/index.xml
tags/after/page/1/index.html
tags/badui/index.html
tags/badui/index.xml
tags/badui/page/1/index.html
tags/baduy/index.html
tags/baduy/index.xml
tags/baduy/page/1/index.html
tags/balada-si-roy/index.html
tags/balada-si-roy/index.xml
tags/balada-si-roy/page/1/index.html
tags/bandung/index.html
tags/bandung/index.xml
tags/bandung/page/1/index.html
tags/bca/index.html
tags/bca/index.xml
tags/bca/page/1/index.html
tags/blog/index.html
tags/blog/index.xml
tags/blog/page/1/index.html
tags/bri/index.html
tags/bri/index.xml
tags/bri/page/1/index.html
tags/calibre/index.html
tags/calibre/index.xml
tags/calibre/page/1/index.html
tags/call-center/index.html
tags/call-center/index.xml
tags/call-center/page/1/index.html
tags/commuter-line/index.html
tags/commuter-line/index.xml
tags/commuter-line/page/1/index.html
tags/diskriminasi/index.html
tags/diskriminasi/index.xml
tags/diskriminasi/page/1/index.html
tags/dompet-elektronik/index.html
tags/dompet-elektronik/index.xml
tags/dompet-elektronik/page/1/index.html
tags/e-money/index.html
tags/e-money/index.xml
tags/e-money/page/1/index.html
tags/e-wallet/index.html
tags/e-wallet/index.xml
tags/e-wallet/page/1/index.html
tags/ebook/index.html
tags/ebook/index.xml
tags/ebook/page/1/index.html
tags/elektronik/index.html
tags/elektronik/index.xml
tags/elektronik/page/1/index.html
tags/farmhouse/index.html
tags/farmhouse/index.xml
tags/farmhouse/page/1/index.html
tags/film/index.html
tags/film/index.xml
tags/film/page/1/index.html
tags/firefox/index.html
tags/firefox/index.xml
tags/firefox/page/1/index.html
tags/gadget/index.html
tags/gadget/index.xml
tags/gadget/page/1/index.html
tags/gojek/index.html
tags/gojek/index.xml
tags/gojek/page/1/index.html
tags/gol-a-gong/index.html
tags/gol-a-gong/index.xml
tags/gol-a-gong/page/1/index.html
tags/gpn/index.html
tags/gpn/index.xml
tags/gpn/page/1/index.html
tags/grab/index.html
tags/grab/index.xml
tags/grab/page/1/index.html
tags/guru/index.html
tags/guru/index.xml
tags/guru/page/1/index.html
tags/hero-fiennes-tiffin/index.html
tags/hero-fiennes-tiffin/index.xml
tags/hero-fiennes-tiffin/page/1/index.html
tags/http/index.html
tags/http/index.xml
tags/http/page/1/index.html
tags/hut-ri/index.html
tags/hut-ri/index.xml
tags/hut-ri/page/1/index.html
tags/iklan/index.html
tags/iklan/index.xml
tags/iklan/page/1/index.html
tags/indonesia/index.html
tags/indonesia/index.xml
tags/indonesia/page/1/index.html
tags/insert-your-tag-here/index.html
tags/insert-your-tag-here/index.xml
tags/insert-your-tag-here/page/1/index.html
tags/internet/index.html
tags/internet/index.xml
tags/internet/page/1/index.html
tags/kai-commuter/index.html
tags/kai-commuter/index.xml
tags/kai-commuter/page/1/index.html
tags/kai/index.html
tags/kai/index.xml
tags/kai/page/1/index.html
tags/kartu-uang-elektronik/index.html
tags/kartu-uang-elektronik/index.xml
tags/kartu-uang-elektronik/page/1/index.html
tags/keusangan-terencana/index.html
tags/keusangan-terencana/index.xml
tags/keusangan-terencana/page/1/index.html
tags/kkl/index.html
tags/kkl/index.xml
tags/kkl/page/1/index.html
tags/kominfo/index.html
tags/kominfo/index.xml
tags/kominfo/page/1/index.html
tags/kontemplasi/index.html
tags/kontemplasi/index.xml
tags/kontemplasi/page/1/index.html
tags/kriminalitas/index.html
tags/kriminalitas/index.xml
tags/kriminalitas/page/1/index.html
tags/krl/index.html
tags/krl/index.xml
tags/krl/page/1/index.html
tags/kurikulum/index.html
tags/kurikulum/index.xml
tags/kurikulum/page/1/index.html
tags/lembang/index.html
tags/lembang/index.xml
tags/lembang/page/1/index.html
tags/library/index.html
tags/library/index.xml
tags/library/page/1/index.html
tags/merdeka/index.html
tags/merdeka/index.xml
tags/merdeka/page/1/index.html
tags/nearlyfreespeech/index.html
tags/nearlyfreespeech/index.xml
tags/nearlyfreespeech/page/1/index.html
tags/obsidian/index.html
tags/obsidian/index.xml
tags/obsidian/page/1/index.html
tags/ojek-online/index.html
tags/ojek-online/index.xml
tags/ojek-online/page/1/index.html
tags/ojol/index.html
tags/ojol/index.xml
tags/ojol/page/1/index.html
tags/open-source/index.html
tags/open-source/index.xml
tags/open-source/page/1/index.html
tags/openletter/index.html
tags/openletter/index.xml
tags/openletter/page/1/index.html
tags/password-manager/index.html
tags/password-manager/index.xml
tags/password-manager/page/1/index.html
tags/patriotisme/index.html
tags/patriotisme/index.xml
tags/patriotisme/page/1/index.html
tags/pembunuhan/index.html
tags/pembunuhan/index.xml
tags/pembunuhan/page/1/index.html
tags/pendidikan/index.html
tags/pendidikan/index.xml
tags/pendidikan/page/1/index.html
tags/penipuan/index.html
tags/penipuan/index.xml
tags/penipuan/page/1/index.html
tags/perpustakaan/index.html
tags/perpustakaan/index.xml
tags/perpustakaan/page/1/index.html
tags/qris/index.html
tags/qris/index.xml
tags/qris/page/1/index.html
tags/rasialisme/index.html
tags/rasialisme/index.xml
tags/rasialisme/page/1/index.html
tags/rasisme/index.html
tags/rasisme/index.xml
tags/rasisme/page/1/index.html
tags/renungan/index.html
tags/renungan/index.xml
tags/renungan/page/1/index.html
tags/ridesharing/index.html
tags/ridesharing/index.xml
tags/ridesharing/page/1/index.html
tags/sekolah/index.html
tags/sekolah/index.xml
tags/sekolah/page/1/index.html
tags/self-hosting/index.html
tags/self-hosting/index.xml
tags/self-hosting/page/1/index.html
tags/smartphone/index.html
tags/smartphone/index.xml
tags/smartphone/page/1/index.html
tags/software/index.html
tags/software/index.xml
tags/software/page/1/index.html
tags/taksi-online/index.html
tags/taksi-online/index.xml
tags/taksi-online/page/1/index.html
tags/telepon/index.html
tags/telepon/index.xml
tags/telepon/page/1/index.html
tags/telkom/index.html
tags/telkom/index.xml
tags/telkom/page/1/index.html
tags/telkomsel/index.html
tags/telkomsel/index.xml
tags/telkomsel/page/1/index.html
tags/tutorial/index.html
tags/tutorial/index.xml
tags/tutorial/page/1/index.html
tags/uber/index.html
tags/uber/index.xml
tags/uber/page/1/index.html
tags/ulasan/index.html
tags/ulasan/index.xml
tags/ulasan/page/1/index.html
tags/uny/index.html
tags/uny/index.xml
tags/uny/page/1/index.html
tags/vendor-lock-in/index.html
tags/vendor-lock-in/index.xml
tags/vendor-lock-in/page/1/index.html
tags/wattpad/index.html
tags/wattpad/index.xml
tags/wattpad/page/1/index.html
tags/web/index.html
tags/web/index.xml
tags/web/page/1/index.html
tags/whatsapp/index.html
tags/whatsapp/index.xml
tags/whatsapp/page/1/index.html

sent 107.665 bytes  received 27.720 bytes  54.154,00 bytes/sec
total size is 20.091.597  speedup is 148,40
Deployment complete!