From 8f7acbcf7c4b97e44240bcdc25be5fd5caedbe7c Mon Sep 17 00:00:00 2001 From: Qian Gu Date: Thu, 23 Apr 2020 08:49:40 +0800 Subject: [PATCH] add pelican-toc plugin support --- README.md | 1 + templates/article.html | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index 2d08619..97543b6 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,7 @@ The minimalist [Pelican](http://blog.getpelican.com/) theme. - [Representative image](https://github.com/getpelican/pelican-plugins/tree/master/representative_image) (new in 2.2.0) - [Neighbors](https://github.com/getpelican/pelican-plugins/tree/master/neighbors) (new in 2.2.0) - [Tipue Search](https://github.com/getpelican/pelican-plugins/blob/master/tipue_search/) +- [pelican-toc](https://github.com/ingwinlu/pelican-toc) ## Install diff --git a/templates/article.html b/templates/article.html index e4aaddd..a5806ae 100644 --- a/templates/article.html +++ b/templates/article.html @@ -46,6 +46,12 @@ {% endif %} + {% if article.toc %} + + {% endif %} +
{{ article.content }}