diff --git a/_config.yml b/_config.yml index 5cbc17f85..10e0fe558 100755 --- a/_config.yml +++ b/_config.yml @@ -289,7 +289,10 @@ widget: class: text # 小部件类型,对应_widget文件夹中的文件名 icon: fas fa-file title: 文本部件 - body: '这是一段支持markdown的文本
![](https://img.vim-cn.com/4e/3c87a2fd28fd0b9c2f27ce3f83f1e9275d0488.png)' + content: + - '这是一段支持markdown的文本' + - '![](https://img.vim-cn.com/4e/3c87a2fd28fd0b9c2f27ce3f83f1e9275d0488.png)' + - haha - id: dao_hang class: grid icon: fas fa-map-signs diff --git a/layout/_partial/meta.ejs b/layout/_partial/meta.ejs index 07caf9d14..b47f226a1 100644 --- a/layout/_partial/meta.ejs +++ b/layout/_partial/meta.ejs @@ -3,7 +3,7 @@ } else { var isPostList = false; } -var topMetas = (theme.meta && theme.meta.header) || []; +var topMetas; if (isPostList) { topMetas = theme.layout.on_list.meta || []; } else { @@ -16,7 +16,7 @@ if (post.meta && (post.meta.header !== undefined && post.meta.header !== null)) topMetas = []; } } -var bottomMetas = (theme.meta && theme.meta.footer) || []; +var bottomMetas; if (isPostList) { bottomMetas = []; } else { diff --git a/layout/_partial/scripts.ejs b/layout/_partial/scripts.ejs index 90213a826..5c55c5259 100755 --- a/layout/_partial/scripts.ejs +++ b/layout/_partial/scripts.ejs @@ -20,7 +20,7 @@ if (!ROOT.endsWith('/')) ROOT += '/'; <% } %> - + <% if (theme.aplayer == true) { %> @@ -55,7 +55,7 @@ <% } %> <% if (theme.fastclick == true) { %> - +