From 3ff5f62351527acac8b4118600dee054d3804126 Mon Sep 17 00:00:00 2001 From: isAlive <980099577@qq.com> Date: Fri, 18 Oct 2019 22:31:18 +0800 Subject: [PATCH] fix(widget):build error (#543) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 当目录为空的时候,就不要生成这个widget了,看起来有点奇怪 * 当目录为空的时候,就不要生成这个widget了,看起来有点奇怪 * fix build error --- layout/widget/toc.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/widget/toc.ejs b/layout/widget/toc.ejs index 37fb2ad..69b5c96 100644 --- a/layout/widget/toc.ejs +++ b/layout/widget/toc.ejs @@ -24,7 +24,7 @@ } return result; } %> -<% let tocContent = buildToc(_toc(post.content)); if (tocContent !== undefined && tocContent !== ''){ %> +<% let tocContent = buildToc(_toc(content)); if (tocContent !== undefined && tocContent !== ''){ %>