add pelican-toc plugin support

This commit is contained in:
Qian Gu 2020-04-23 08:49:40 +08:00
parent 9d672dba84
commit 8f7acbcf7c
2 changed files with 7 additions and 0 deletions

View file

@ -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

View file

@ -46,6 +46,12 @@
</script>
{% endif %}
{% if article.toc %}
<div class="col-lg-3 hidden-xs hidden-sm">
{{article.toc}}
</div>
{% endif %}
<div>
{{ article.content }}
</div>