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 !== ''){ %>