Comments (12)
Friendly ping @toshimaru :)
I could replace those headers with a header > 5 but ideally this should be fixed.
from jekyll-toc.
@XhmikosR Hi, I checked your site and I found you configured custom class for no_toc_section
.
https://github.com/twbs/bootstrap/blob/9788baedeadddba9d0bcd4dbaea43d65ece9bcbd/_config.yml#L65
You have two options.
- Use
bd-example
class instead ofno_toc_section
. - Remove your
no_toc_section_class
configuration, and useno_toc_section
.
I think it's not a bug, so I close the issue, but if any further issue, please let me know.
from jekyll-toc.
@toshimaru How come you think it's not a bug? I already add the no_toc_section
in the callout, so I expect any header there to not show up in ToC.
from jekyll-toc.
- Use
bd-example
class instead ofno_toc_section
.- Remove your
no_toc_section_class
configuration, and useno_toc_section
.
I'd say I already gave options to fix a issue. I'm a not English speaker so if you can't understand the options I gave, could you explain why it doesn't make sense? I could explain the detail more. 👍
from jekyll-toc.
- I can't add
bd-example
, that's for other uses - Since I can't specify multiple classes there, I'm stuck.
from jekyll-toc.
OK, maybe I misunderstood the docs. I will try something else and if it works then the docs need to be clarified.
from jekyll-toc.
I got it, you'd like to configure multiple no_toc_section
classes!! (In your case, no_toc_section
and bd-example
). Currently, you can configure only one no_toc_section_class
.
So, I'd like to propose another option:
- Remove your
no_toc_section_class
configuration, which means you can use onlyno_toc_section
class. Then, addno_toc_section
to the existingbd-example
element.
For exmaple:
<div class="bd-example">
Change it to:
<div class="bd-example no_toc_section">
from jekyll-toc.
Yeah but that's the problem, we have 133 bd-example
instances. Hence why I had suggested from the beginning to allow multiple classes there :)
from jekyll-toc.
Hmm, I originally don't want to allow no_toc_section_class
to have multiple values because it might cause the performance decrement, but I've understood your use case.
I change this issue title and re-open it.
from jekyll-toc.
I'm not very familiar with Ruby, but it shouldn't have a noticeable performance penalty in theory.
Let me know if you make a beta with this feature.
Thanks!
from jekyll-toc.
Yes, you’re probably right, I’m being too sensitive about the performance.
I could implement this without the performance impact, am going to release it in the next version. :)
from jekyll-toc.
@XhmikosR Allowing multiple no_toc_section
classes has been released at v0.9.1.
ref. https://github.com/toshimaru/jekyll-toc#skip-toc-section
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.