Cloudflare PagesのHugoのビルドが失敗しちゃう(バージョン問題)

テーマのアップデートとかをした後でCloudflare PagesでホストしているHugoビルドが失敗しちゃっている・・・
| | |
|---|---|
|01:40:44.001|Error: error building site: render: failed to render pages: render of "page" failed: "/opt/buildhome/repo/themes/LoveIt/layouts/_default/baseof.html:24:16": execute of template failed: template: _default/single.html:24:16: executing "_default/single.html" at <partial "header.html" .>: error calling partial: "/opt/buildhome/repo/themes/LoveIt/layouts/partials/header.html:60:23": execute of template failed: template: partials/header.html:60:23: executing "partials/header.html" at <hugo>: can't evaluate field IsMultilingual in type interface {}|
こういうエラーメッセージが出ていて、
検索をかけるとどうやらバージョンに関わるもの?みたい
で、ログに出ていたバージョンがこれ、
| | |
|---|---|
|01:40:43.291|hugo v0.118.2-da7983ac4b94d97d776d7c2405040de97e95c03d+extended linux/amd64 BuildDate=2023-08-31T11:23:51Z VendorInfo=gohugoio|
テーマの説明を再度確認しにいくとこれ
oh…no…バージョン足りない…
解決
https://developers.cloudflare.com/pages/framework-guides/deploy-a-hugo-site/
なんとHugoのバージョンを指定できるみたい!!!!
設定から変数でバージョンを指定してあげると・・・
動いたやったー!