插件准备
- 使用 extract_toc
- 执行 git clone https://github.com/getpelican/pelican-plugins.git
修改配置文件
- 文件:pelicanconf.py
- 指定插件目录
PLUGIN_PATHS = ['<your_path>/getpelican/pelican-plugins']
- 启用插件
PLUGINS = ['extract_toc']
Markdown标记
- 插入 [TOC] 标签,例如:
title: Pelican TOC Plugin
date: 2015-10-16
modified: 2015-10-17
tags: pelican
category: pelican
[TOC]
### 插件准备