本文介绍了如何为Jekyll博客文章创建目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我在Jekyll中有带有标题的页面/帖子,是否可以自动生成用于导航的目录/大纲?类似于Wikipedia文章的主题.
If I have a page/post in Jekyll with headers, is it possible to auto-generate a table-of-contents/outline for navigation? Something akin to the top matter of a Wikipedia article.
推荐答案
这是标记解析器的任务.
That is the markup parser's task.
对于Markdown,语法扩展之一定义了自动生成目录:
In case of Markdown one of the syntax extensions defines Automatic generation of the table of contents:
* This will become a table of contents (this text will be scrapped).
{:toc}
这篇关于如何为Jekyll博客文章创建目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!