From 6955c5a084dd0ed4453e7293fb5608d920cd80fd Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Fri, 24 May 2013 15:06:54 -0400 Subject: [PATCH] Add table of contents --- _posts/2011-03-10-sample-post.md | 10 ++++++++++ assets/css/ie.css | 2 +- assets/css/main.css | 2 +- assets/less/600.less | 2 +- theme-setup.md | 10 ++++++++++ 5 files changed, 23 insertions(+), 3 deletions(-) diff --git a/_posts/2011-03-10-sample-post.md b/_posts/2011-03-10-sample-post.md index 04387b8c..05668fb0 100644 --- a/_posts/2011-03-10-sample-post.md +++ b/_posts/2011-03-10-sample-post.md @@ -7,6 +7,16 @@ image: feature: texture-feature-05.jpg --- +
+
+

Contents

+
+
+* Auto generated table of contents +{:toc} +
+
+ ## HTML Elements Below is just about everything you’ll need to style in the theme. Check the source code to see the many embedded elements within paragraphs. diff --git a/assets/css/ie.css b/assets/css/ie.css index 181bf1bd..805f658f 100644 --- a/assets/css/ie.css +++ b/assets/css/ie.css @@ -1883,7 +1883,7 @@ html { margin-left: 4.166666666666667%; margin-right: 4.166666666666667%; position: fixed; - top: 25px; + top: 120px; right: 0; -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); -moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); diff --git a/assets/css/main.css b/assets/css/main.css index 01a47695..9f34f801 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -2837,7 +2837,7 @@ img.mfp-img { margin-left: 4.166666666666667%; margin-right: 4.166666666666667%; position: fixed; - top: 25px; + top: 120px; right: 0; -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); -moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); diff --git a/assets/less/600.less b/assets/less/600.less index e2a25e46..1c666336 100644 --- a/assets/less/600.less +++ b/assets/less/600.less @@ -52,7 +52,7 @@ html { .prefix(12,0.5); .suffix(12,0.5); position: fixed; - top: 25px; + top: 120px; right: 0; .box-shadow(0 0 5px rgba(0,0,0,.50)); } diff --git a/theme-setup.md b/theme-setup.md index 6de8783b..2e25bb0d 100644 --- a/theme-setup.md +++ b/theme-setup.md @@ -8,6 +8,16 @@ image: feature: texture-feature-02.jpg --- +
+
+

Contents

+
+
+* Auto generated table of contents +{:toc} +
+
+ General notes and suggestions for customizing Minimal Mistakes. ## Basic Setup