From eb9c2742a8573e802b14c2b5281d0c1b1c929338 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Sun, 11 Dec 2022 20:20:30 +0800 Subject: [PATCH] [fix] toc tag-plugin --- scripts/tags/lib/toc.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 += '