diff --git a/scripts/tags/lib/toc.js b/scripts/tags/lib/toc.js index 14dba2d..d2780bd 100644 --- a/scripts/tags/lib/toc.js +++ b/scripts/tags/lib/toc.js @@ -7,12 +7,13 @@ 'use strict' -function layoutDocTree(pages) { +function layoutDocTree(ctx, pages) { + const url_for = require('hexo-util').url_for.bind(ctx) var el = '' el += '