sc0ttj / mdsh

A simple static site generator, using Markdown and Bash
https://sc0ttj.github.io/mdsh/
10 stars 0 forks source link

Add a "Table of Contents" to pages #63

Open sc0ttj opened 5 years ago

sc0ttj commented 5 years ago

Create a function to generate a table of contents (TOC):

1. h2 name
  2. h3 name
    a. h4 name
    b. h4 name
  3. h3 name
  4. h3 name
    a. h4 name
    b. h4 name

NOTE:

TOC should not be added to index pages (homepage, categories, authors, tags), the search page, or the contact page..