Comments (13)
Well, ignore_within
is a no longer valid option, right? So I just added the no_toc_section
class where we want to ignore ToC entries.
from jekyll-toc.
Yes, that's right. Just add no_toc_section
and it should work! :)
from jekyll-toc.
Okay, could you create a issue about multiple no_toc_section?
from jekyll-toc.
Oops, it seems ignore_within
isn't released yet :)
from jekyll-toc.
Closing, since it actually seems to work fine :)
I'm gonna wait for the stable release to update.
from jekyll-toc.
Hi, @XhmikosR, I've just released v0.8.0.rc1.
If you wanna try no_toc_section
feature, please try the version and give me feedback.
Usage: just add no_toc_section
class to <div>
you want to ignore(no need to modify _config.yml
).
from jekyll-toc.
We currently don't have any such case @toshimaru :)
But I quickly tested and it seems to work fine.
from jekyll-toc.
@toshimaru: this seems to be broken in 0.8.0 for the Netlify's previews, which is using Ruby 2.3.6, but works locally for me with Ruby 2.4.2.
If you check https://deploy-preview-27417--twbs-bootstrap4.netlify.com/docs/4.1/components/alerts/ you will see it includes Well done!
in ToC.
Maybe it's something on Netlify only but I thought I'd report it.
EDIT: OK it doesn't work locally either.
from jekyll-toc.
OK apparently you changed this.
from jekyll-toc.
seems it fixed? thanks for reporting!
from jekyll-toc.
@toshimaru: does no_toc_section_class
accept multiple classes? If not can you consider this?
from jekyll-toc.
@XhmikosR No, current implementation can have only one no_toc_section_class
. I’m considering multiple classes for no_toc
, but didn’t consider for no_toc_sectiom
.
Out of curiosity, what is the use cases for mulple no_toc_section
classes??
from jekyll-toc.
Unfortunately we need more than one class in Bootstrap. Not a big deal since I actually found a way to work around this, but if there's no (huge) performance hit, this would be very handy. :)
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.