From 2ebaf77431348f45a2c8eda0a744afee4f54bed6 Mon Sep 17 00:00:00 2001 From: Simon Holywell Date: Tue, 7 Jul 2015 09:45:27 +0100 Subject: [PATCH] Add in a TOC --- _config.yml | 1 + index.md | 3 +++ style.css | 9 ++++++++- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index 6f16cb0..a396971 100644 --- a/_config.yml +++ b/_config.yml @@ -10,3 +10,4 @@ highlighter: pygments kramdown: input: GFM hard_wrap: false + toc_levels: "2,3" diff --git a/index.md b/index.md index 390a152..ac70593 100644 --- a/index.md +++ b/index.md @@ -2,4 +2,7 @@ layout: default --- +* TOC +{:toc} + {% include sqlstyle.guide.md %} \ No newline at end of file diff --git a/style.css b/style.css index 0356f12..a101f38 100644 --- a/style.css +++ b/style.css @@ -101,7 +101,14 @@ header.top h1 { display: none; } - +ul#markdown-toc { + -webkit-column-count: 2; + -moz-column-count: 2; + column-count: 2; + -webkit-column-gap: 1em; + -moz-column-gap: 1em; + column-gap: 1em; +} /* Syntax highlighting */ code {