diff --git a/_posts/2013-12-12-Generate-a-table-of-content.md b/_posts/2013-12-12-Generate-a-table-of-content.md deleted file mode 100644 index 82ff5ef024..0000000000 --- a/_posts/2013-12-12-Generate-a-table-of-content.md +++ /dev/null @@ -1,190 +0,0 @@ ---- -layout: post -title: Generate a table of content -tags: [Kramdown, Customization] -author: sylhare -excerpt_separator: ---- - -# Using Kramdown GFM - - -* TOC -{:toc} - -## Basic Usage - -You need to put this at the beginning of the page where you want the table of content to be displayed - -```html -* TOC -{:toc} -``` - -It will then render the markdown and html titles (lines that begins with `#` or using the `

` tages) - -# Using toc.js - -Demo display of [jekyll-table-of-contents](https://github.com/ghiculescu/jekyll-table-of-contents) by ghiculescu. - - -
- -## Customize with toc.js - -[toc.js](https://github.com/ghiculescu/jekyll-table-of-contents) stands for table of content, it is a js plugin that generates automatically a table of content of a post. - -### Use with this jekyll template - -If you want to customize the theme it is up to you, you can add the `toc.js` file into the `asset > js` and add it into the `page.html` layout with: - -```html - -``` -Then you can use it as it is said on the repository. - -## Basic Usage - -The script requires jQuery. First, reference toc.js in templates where you would like to add the table of content. Then, create an HTML element wherever you want your table of contents to appear: - -```html -
-``` - -Then you put your post with titles and all like: - -```apiblueprint -## Title -## Mid title 1 -This is text on page one -## Mid title 2 -This is text for page two -### Sub title 2.a -Some more text -``` - -Then at the end of your post, you call the .toc() function using: - -```html - -``` - -## How it would look like - -So you can get a feel of it. - -![image](https://user-images.githubusercontent.com/20642750/39189661-c22099f2-47a0-11e8-826e-2ec3ef4cc4f4.png) - - - - - diff --git a/_posts/2014-11-28-markdown-and-html.md b/_posts/2014-11-28-markdown-and-html.md index 3c54e35b01..dc41c16416 100644 --- a/_posts/2014-11-28-markdown-and-html.md +++ b/_posts/2014-11-28-markdown-and-html.md @@ -7,16 +7,32 @@ author: rohanchandra Jekyll supports the use of [Markdown](http://daringfireball.net/projects/markdown/syntax) with inline HTML tags which makes it easier to quickly write posts with Jekyll, without having to worry too much about text formatting. A sample of the formatting follows. +## Table of content + + +* TOC + {:toc} +* +You need to put this at the beginning of the page where you want the table of content to be displayed + +```html +* TOC +{:toc} +``` + +It will then render the markdown and html titles (lines that begins with `#` or using the `

` tages) + + ## Title -### Sub title +### Subtitle Tables have also been extended from Markdown: -First Header | Second Header -------------- | ------------- -Content Cell | Content Cell -Content Cell | Content Cell +| First Header | Second Header | +|--------------|---------------| +| Content Cell | Content Cell | +| Content Cell | Content Cell | Here's an example of an image, which is included using Markdown: