HEIGE-PCloud / DoIt

A clean, elegant and advanced blog theme for Hugo.
https://hugodoit.pages.dev
MIT License
789 stars 194 forks source link

[BUG] 本地预览shortcodes有效,但是vercel部署过后shortcodes无法找到 #1148

Closed cold-bin closed 9 months ago

cold-bin commented 9 months ago

Describe the bug 描述你遇到的错误

本地预览shortcodes有效,但是vercel部署过后shortcodes无法找到

Expected behavior 期待的行为

应该能和本地预览一样看到shortcodes生效

Screenshots 屏幕截图

image

Build Environment 构建环境

OS: by vercel Theme version/commit 9e7d099 Hugo version hugo v0.120.0-20c3bae2c4839ec993ec3c353da4fd7b09215cd8+extended linux/amd64 BuildDate=2023-10-30T14:06:47Z VendorInfo=gohugoio

Preview Environment 预览环境

OS: Linux BPC 6.5.0-14-generic#14-Ubuntu SMP PREEMPT_DYNAMIC Tue Nov 14 14:59:49 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux Browser type/version Google Chrome 120.0.6099.129

Additional Information 补充信息

No response

cold-bin commented 9 months ago

所有的shortcodes都找不到

cold-bin commented 9 months ago

已解决。主要是vercel默认的hugo版本过低,后面指定HUGO_VERSION环境变量即可