如题,楼主头一回鼓捣 rmd 格式的博客,很正常地能在 viewer 窗格看到内容,很正常地上传 github ,但是等了一会没见博客更新,我用的部署工具是 netlify,上去查发现部署失败了。报的错误长这样:
Error: Error building site: "/opt/build/repo/content/project/2022-10-27-dt-manual-for-me/index.html:13:14": failed to extract shortcode: template for shortcode "blogdown/postref" not found
3:01:19 PM: ❯ Context
3:01:19 PM: production
3:01:19 PM:
3:01:19 PM: Creating deploy upload records
3:01:19 PM: ────────────────────────────────────────────────────────────────
3:01:19 PM: 1. build.command from netlify.toml
3:01:19 PM: ────────────────────────────────────────────────────────────────
3:01:19 PM:
3:01:19 PM: $ hugo
3:01:19 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
3:01:19 PM: Start building sites …
3:01:19 PM: Total in 223 ms
3:01:19 PM: Error: Error building site: "/opt/build/repo/content/project/2022-10-27-dt-manual-for-me/index.html:13:14": failed to extract shortcode: template for shortcode "blogdown/postref" not found
3:01:19 PM:
3:01:19 PM: ────────────────────────────────────────────────────────────────
3:01:19 PM: "build.command" failed
3:01:19 PM: ────────────────────────────────────────────────────────────────
3:01:19 PM:
3:01:19 PM: Error message
3:01:19 PM: Command failed with exit code 255: hugo (https://ntl.fyi/exit-code-255)
3:01:19 PM:
3:01:19 PM: Error location
3:01:19 PM: In build.command from netlify.toml:
3:01:19 PM: hugo
本来我想截个图,可是这个部署失败以后,后面传的图片也看不了了。请大神抽空帮忙瞅瞅呐。