mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2025-06-07 16:17:50 +00:00
perf: allow TOC to start at heading 3 (#1512)
This commit is contained in:
parent
74f16623c9
commit
bbbb66b489
@ -1,5 +1,5 @@
|
|||||||
export function toc() {
|
export function toc() {
|
||||||
if (document.querySelector('main h2')) {
|
if (document.querySelector('main h2, main h3')) {
|
||||||
// see: https://github.com/tscanlin/tocbot#usage
|
// see: https://github.com/tscanlin/tocbot#usage
|
||||||
tocbot.init({
|
tocbot.init({
|
||||||
tocSelector: '#toc',
|
tocSelector: '#toc',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user