Add shortcode for generating table of contents (#258)

This commit is contained in:
George Cushen 2017-09-03 15:07:38 +01:00
commit 06dc780e6c
3 changed files with 7 additions and 0 deletions

View file

@ -28,6 +28,8 @@ Key features:
- Simple and refreshing one page design
- Easy to customize
{{% toc %}}
## Installation
1. [Install Hugo](https://georgecushen.com/create-your-website-with-hugo/#installing-hugo) and create a new website by typing the following commands in your *Terminal* or *Command Prompt* app:

View file

@ -3,6 +3,9 @@
- id: toggle_navigation
translation: Toggle navigation
- id: table_of_contents
translation: Table of Contents
# Buttons
- id: btn_details

View file

@ -0,0 +1,2 @@
<h2>{{ i18n "table_of_contents" }}</h2>
{{ $.Page.TableOfContents }}