mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 03:00:50 +02:00
docs: Add toc
shortcode
This commit is contained in:
parent
06dc780e6c
commit
6fab4bc3bc
1 changed files with 6 additions and 0 deletions
|
@ -8,6 +8,8 @@ math = true
|
|||
|
||||
Content can be written using [Markdown](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet), [LaTeX math](https://en.wikibooks.org/wiki/LaTeX/Mathematics), and [Hugo Shortcodes](http://gohugo.io/extras/shortcodes/). Additionally, HTML may be used for advanced formatting.<!--more--> This article gives an overview of the most common formatting options.
|
||||
|
||||
{{% toc %}}
|
||||
|
||||
## Sub-headings
|
||||
|
||||
## Heading 2
|
||||
|
@ -233,3 +235,7 @@ This will display the following *warning* block:
|
|||
{{% alert warning %}}
|
||||
Here's some important information...
|
||||
{{% /alert %}}
|
||||
|
||||
## Table of Contents
|
||||
|
||||
A table of contents may be particularly useful for long posts or tutorial/documentation type content. Use the `{{%/* toc */%}}` shortcode anywhere you wish within your Markdown content to automatically generate a table of contents.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue