You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But toc.js in post.min.js still executes and then cause a tocbot is not defined error, which will break post.min.js. I've added some custom scripts at the end of post.js, and they can't be executed in a post without headers for the reason mentioned above.
To Reproduce
Steps to reproduce the behavior:
Create a post without any headers.
Check console messages.
Expected behavior
Logs/Screenshots
Environment
Command
Version
ruby -v
3.0.2p107
gem -v
3.3.5
bundle -v
2.3.13
bundle exec jekyll -v
4.3.2
bundle info jekyll-theme-chirpy
5.6.0
Additional context
The text was updated successfully, but these errors were encountered:
NichtsHsu
changed the title
Tocbot may breaks the post.min.js
Tocbot may break the post.min.jsMar 29, 2023
NOTE: Before you start, the following should be completed.
master
branch.Describe the bug
If a post do not have headers,
tocbot.min.js
will not be loaded becuase of:jekyll-theme-chirpy/_includes/toc.html
Lines 8 to 16 in 6fec411
But
toc.js
inpost.min.js
still executes and then cause atocbot is not defined
error, which will breakpost.min.js
. I've added some custom scripts at the end ofpost.js
, and they can't be executed in a post without headers for the reason mentioned above.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Logs/Screenshots
Environment
ruby -v
gem -v
bundle -v
bundle exec jekyll -v
bundle info jekyll-theme-chirpy
Additional context
The text was updated successfully, but these errors were encountered: