惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 司徒正美
T
The Blog of Author Tim Ferriss
F
Fortinet All Blogs
Martin Fowler
Martin Fowler
罗磊的独立博客
The GitHub Blog
The GitHub Blog
L
LangChain Blog
A
About on SuperTechFans
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
D
DataBreaches.Net
宝玉的分享
宝玉的分享
U
Unit 42
阮一峰的网络日志
阮一峰的网络日志
Last Week in AI
Last Week in AI
N
Netflix TechBlog - Medium
The Cloudflare Blog
Microsoft Azure Blog
Microsoft Azure Blog
H
Help Net Security
美团技术团队
大猫的无限游戏
大猫的无限游戏
雷峰网
雷峰网
爱范儿
爱范儿
酷 壳 – CoolShell
酷 壳 – CoolShell
MongoDB | Blog
MongoDB | Blog

Hugo - 分类 - cywhat's blog

Hugo的Loveit主题修改sitemap Site.webmanifest异常处理 Loveit开启评论功能 Loveit主题开启文章赞赏 Loveit主题的一些美化设置
Failed to Extract Shortcode:template for Shortcode Admoni...
cywhat · 2022-10-13 · via Hugo - 分类 - cywhat's blog

1、问题

换新设备后迁移基于hugo构建的静态博客出现的报错,报错如下:

failed to extract shortcode: template for shortcode "admonition" not found

2、原因

未使用hugo_extended版本,导致loveit主题自带的"admonition"模块没有渲染出来报错了

3、解决

1
2
3
4
5
1、下载安装hugo_extended版本

2、初始化submodule

git submodule update --init --recursive

安装hugo_extended

关注一下再走吧

公众号 小程序

赞赏支持

微信打赏 支付宝打赏