Giter Site home page Giter Site logo

Comments (3)

vahid-dan avatar vahid-dan commented on May 27, 2024 2

@toshimaru,

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.

toshimaru avatar toshimaru commented on May 27, 2024

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.

vahid-dan avatar vahid-dan commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.