diff --git a/scripts/tags/toc.js b/scripts/tags/toc.js new file mode 100644 index 0000000..37fb42b --- /dev/null +++ b/scripts/tags/toc.js @@ -0,0 +1,72 @@ +/** + * toc.js v1 | https://github.com/xaoxuu/hexo-theme-stellar/ + * 格式与官方标签插件一致使用空格分隔,中括号内的是可选参数(中括号不需要写出来) + * + * {% toc wiki:xxx [open:true] [display:mobile] title %} + */ + +'use strict'; + +function layoutDocTree(pages) { + var el = ''; + el += '