Add new TableOfContents Page variable (Markdown only)
authorNiels Widger <niels.widger@gmail.com>
Sat, 18 Jan 2014 16:42:01 +0000 (11:42 -0500)
committerspf13 <steve.francia@gmail.com>
Thu, 23 Jan 2014 22:27:08 +0000 (17:27 -0500)
commitf62e3e9940fafb89f88e0ee6b8987b89bbfd281e
tree4c25bf7a31245b6cc25ee4bc722d9d4ddc1305b4
parent4f1807c7a766e4c655c8582aa83783f7e1f9f4b6
Add new TableOfContents Page variable (Markdown only)

Added TableOfContents field to hugolib.Page struct.  New function
getTableOfContents is used in convertMarkdown to set the TableOfContents
field.

Added new test file hugolib/page_toc_test.go with a simple test of the
new functionality.

Conflicts:
hugolib/page.go
hugolib/page.go
hugolib/page_toc_test.go [new file with mode: 0644]