From 1a94e25dddbf762595fb488e3456ca4365d6b40f Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Thu, 22 Jun 2017 22:34:09 -0500 Subject: [PATCH] an R Markdown example of how to show table of contents --- .../content/post/2017-06-22-rmd-toc.Rmd | 26 ++++++++++++ .../content/post/2017-06-22-rmd-toc.html | 40 +++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 exampleSite/content/post/2017-06-22-rmd-toc.Rmd create mode 100644 exampleSite/content/post/2017-06-22-rmd-toc.html diff --git a/exampleSite/content/post/2017-06-22-rmd-toc.Rmd b/exampleSite/content/post/2017-06-22-rmd-toc.Rmd new file mode 100644 index 00000000..d5440c56 --- /dev/null +++ b/exampleSite/content/post/2017-06-22-rmd-toc.Rmd @@ -0,0 +1,26 @@ +--- +title: Show Table of Contents for R Markdown Posts +date: '2017-06-22' +slug: rmd-toc +output: + blogdown::html_page: + toc: true +--- + +# One Section + +A quick fox jumped over the lazy dog. + +![quick fox](https://slides.yihui.name/gif/quick-fox.gif) + +# Another Section + +A quick fox jumped over the lazy dog. + +## A subsection + +A quick fox jumped over the lazy dog. + +## Another subsection + +A quick fox jumped over the lazy dog. diff --git a/exampleSite/content/post/2017-06-22-rmd-toc.html b/exampleSite/content/post/2017-06-22-rmd-toc.html new file mode 100644 index 00000000..00e4500f --- /dev/null +++ b/exampleSite/content/post/2017-06-22-rmd-toc.html @@ -0,0 +1,40 @@ +--- +title: Show Table of Contents for R Markdown Posts +date: '2017-06-22' +slug: rmd-toc +output: + blogdown::html_page: + toc: true +--- + + +
+ +
+ +
+

One Section

+

A quick fox jumped over the lazy dog.

+
+quick fox +

quick fox

+
+
+
+

Another Section

+

A quick fox jumped over the lazy dog.

+
+

A subsection

+

A quick fox jumped over the lazy dog.

+
+
+

Another subsection

+

A quick fox jumped over the lazy dog.

+
+