From cf6e12bec12e0e0502b2e23ec011ec580e29fc17 Mon Sep 17 00:00:00 2001 From: Iridescent Date: Sun, 24 May 2020 18:00:30 +0200 Subject: [PATCH] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4b86128..0b24d0c 100644 --- a/README.md +++ b/README.md @@ -17,10 +17,12 @@ Generate a table of contents for the pages of your [Pico](http://picocms.org) si * Copy the `TableOfContents` folder into the `plugins` folder of your project. * Update your theme to include CSS style. * Define the configuration variables if default values are not suitable. -* Add `` in your content files where you want the table of contents to appear. +* Add `` element where you want the table of contents to appear on your page. ### Usage -In your content markdown files, simply add the `` element where you want the table of contents to be inserted. +Automatically generates a table of contents based on the elements `

` to `

` of your page. + +In the `.md` file corresponding to your page, simply add the `` element where you want the table of contents to be inserted. The `` element must be added for each page you want. ### Update your theme In your template files, add the plugin's CSS style in the `head` section: