-
Checklist
How did you create the site?Generated from DescriptionI am building my page locally and TOC is not shown. Is this expected and does it mean that it will show up once page is published on github? - Since I did not manage to run Operations you have already tried
Anything else?No response |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 1 reply
-
@Hrovatin have you tried clearing all jekyll cache before rebuilding? |
Beta Was this translation helpful? Give feedback.
-
TOC should work on local build. I would suggest to check # boolean type, the global switch for TOC in posts.
toc: true
defaults:
- scope:
path: "" # An empty string here means all files in the project
type: posts
values:
layout: post
comments: true # Enable comments in posts.
toc: true # Display TOC column in posts. Then, make sure you have no errors in browser console when you open the post. |
Beta Was this translation helpful? Give feedback.
-
Hi, Tyank you very much for the quick response. I checked that toc is set to true in both cases in _config.yml and I also tried to set it true within individual posts. I attempted to re-build which should have cleared the cache if I am not mistaken.
There are no errors in my terminal or browser console.
|
Beta Was this translation helpful? Give feedback.
-
If you are using the Starter, the upgrade method should be as described in the Upgrading from Starter. And you don't need to run Based on the limited information you’ve provided, you may consider providing the repo URL to help the community assist you better. |
Beta Was this translation helpful? Give feedback.
-
Yes, I used that upgrade tutorial but since that did not help I tried the npm command as well as I have seen another thread suggesting that. The blog is not yet public, but I made the repository public now. You can see an example post on test branch. |
Beta Was this translation helpful? Give feedback.
-
I found out that this occurs only on Firefox but not Chrome. |
Beta Was this translation helpful? Give feedback.
-
When you want to protect your privacy, you can consider temporarily creating a copy of the repository, then delete sensitive data and reset all git commit history before providing it to the community for troubleshooting. Back to the topic, from your repository, the post can correctly generate the TOC in Chrome/Firefox. So I think you might be interfered by the local browser cache. Try accessing the webpage in the browser's incognito mode. If you still have the same issue, please provide the specific operating system, browser type, and version number. Thank you. |
Beta Was this translation helpful? Give feedback.
When you want to protect your privacy, you can consider temporarily creating a copy of the repository, then delete sensitive data and reset all git commit history before providing it to the community for troubleshooting.
Back to the topic, from your repository, the post can correctly generate the TOC in Chrome/Firefox. So I think you might be interfered by the local browser cache. Try accessing the webpage in the browser's incognito mode.
If you still have the same issue, please provide the specific operating system, browser type, and version number. Thank you.