jekyll-table-of-contents
jekyll-table-of-contents copied to clipboard
A simple JavaScript table of contents, designed for Jekyll (or similar) sites.
``` //\_layouts\post.html $(document).ready(function() { $('#toc').toc(); }); ``` I added this code to the `\_layouts\post.html` but didn't generate the corresponding content
I see the following lines let the back-to-top icon/text/... be shown on the top-level headings only: ``` var get_level = function(ele) { return parseInt(ele.nodeName.replace("H", ""), 10); }; var highest_level =...
At first, I executed this code ``` gem install rdiscount jekyll build ``` An error has occurred ``` Dependency Error: Yikes! It looks like you don't have rdiscount or one...
what if my site has a fixed title bar? I can't jump to the top of site, any solution measures?
Here's my MD file, which I'm using with Jekyll: ``` --- title: Testing TOC summary: Testing TOCs. permalink: testTOC.html --- Lorem ipsum. ### Here's an H3 Lorem ipsum. ## Here's...
``` noBackToTopLinks: false, title: '', minimumHeaders: 1, headers: 'h1, h2', // original h1, h2, h3, h4 listType: 'ol', // values: [ol|ul] showEffect: 'show', // values: [show|slideDown|fadeIn|none] showSpeed: 'slow' // set...
Hello! I would thank you for this simple but excellent javascript component I've used it to improve features of git-wiki project http://www.drassil.org/git-wiki/ It allows you to build a totally customizable...
This script looks great, but my blog home page renders multiple posts in an "infinite scroll" kind of interface, and the TOC on the first post includes all headers on...
Thx, it can work in my blog.