Comments (3)
Nevermind! I just made it work for my whole layout by adding toc: true
to the default settings of the layout in _config.yml
.
Thanks a lot for your great plugin and support. :-)
Cheers,
Vahid
from jekyll-toc.
Probably you mean Jekyll 3.5.1?
https://rubygems.org/gems/jekyll/versions
I tries it out on my blog repo and it does work.
$ bundle list | grep jekyll
* jekyll (3.5.1)
* jekyll-coffeescript (1.0.2)
* jekyll-compose (0.4.1 005b2af)
* jekyll-feed (0.9.2)
* jekyll-paginate (1.1.0)
* jekyll-sass-converter (1.5.0)
* jekyll-sitemap (1.1.1)
* jekyll-tagging (1.1.0)
* jekyll-tagging-related_posts (1.0.0)
* jekyll-toc (0.3.0)
* jekyll-watch (1.5.0)
$ bundle exec jekyll build
Configuration file: /Users/toshimaru/github.com/toshimaru/blog.toshimaru.net/_config.yml
Source: /Users/toshimaru/github.com/toshimaru/blog.toshimaru.net
Destination: /Users/toshimaru/github.com/toshimaru/blog.toshimaru.net/_site
Incremental build: disabled. Enable with --incremental
Generating...
done in 9.343 seconds.
Auto-regeneration: disabled. Use --watch to enable.
If you have any further information, please feel free to re-open issue with reproduce steps.
from jekyll-toc.
Hi @toshimaru and thanks a lot for your reply.
I tested it again and I found out it is working when I explicitly add toc: true
to the front matter of a page. But I thought when I add it to the front matter of a layout, all the pages with that layout would get it. But it is not working that way. Did I have a wrong expectation? Is there any way to do that?
Thanks,
Vahid
from jekyll-toc.
Related Issues (20)
- Drop Ruby 2.4 & Jekyll 3.8
- Error when using v0.17.0 with jekyll/jekyll:3.8 Dockerfile
- Error in nokogumbo when using Ruby 2.7.0
- Feature Request: Add link_class configuration option HOT 2
- Installed following the docs, but doesn't work at all HOT 5
- [Help] - TOC level change for a specific post HOT 1
- How can I use the nav tag instead of the ul class? HOT 1
- Is Github Pages not supported? HOT 3
- Add multiple item_class classes
- Add flag to check if toc is empty HOT 1
- How to adjust the size of toc
- Faliure to generate TOC if the page contains <h1> in a code fence
- Wrong page titles in combination with jekyll-datapage-generator HOT 1
- Custom attributes on generated toc elements
- rake test fails with ruby3.2 HOT 1
- Functionality requests that anchors should be more fine-grained module designs HOT 1
- The function `generate_toc_id` isn't setup for unicode
- Generates TOC for wrong page HOT 1
- `inject_anchors` generates empty links
- Headers are not given id attributes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jekyll-toc.