jpescador / hugo-future-imperfect

A ported theme with some extras for the Hugo static website engine
MIT License
308 stars 227 forks source link

Feature: Table of contents in blog articles #75

Closed mharrend closed 7 years ago

mharrend commented 7 years ago

One can activate a table of contents for blog articles if the word count gets larger than a specified parameter.

Parameters in config.toml: tocIfNecessary = true

Min. number of words in article after which toc gets generated

tocWordCount = 500 Additionally, one can deactivate the toc for single blog articles by adding tocActivated = false to the article config

Description

Motivation and Context

How Has This Been Tested?

Hugo Version:

Browser(s):

Screenshots (if appropriate):

Types of changes

Checklist:

mharrend commented 7 years ago

forget to fill template