Comments (4)
I'm just a casual user, but I had the same sort of issue. Setting toc
in the defaults with an empty path
and the collection as type
worked for me:
defaults:
-
scope:
path: ""
type: "integrations"
values:
toc: true
If this doesn't help, it might be worth setting up a separate repo with a minimal use-case, to make sure it isn't something outside this plugin that is messing with things.
Looking at the code you linked to, you seem to be missing the required path
for the type: posts
entry.
While type is optional, you must specify a value for path when creating a scope/values pair.
source: https://jekyllrb.com/docs/configuration/front-matter-defaults/
Not sure if that is mesing anything up but it might be worth fixing.
from jekyll-toc.
Hey @Potherca :)
Thanks for helping out 😉
from jekyll-toc.
I've added Enable TOC by default section to README. 👍
https://github.com/toshimaru/jekyll-toc#enable-toc-by-default
from jekyll-toc.
@Potherca this worked! Thanks a lot for this ❤️
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.