class Jekyll::TocTag
Inserts an automatically generated table of contents based on the site's directory structure
Syntax {% toc %}
Public Instance Methods
render(context)
click to toggle source
Render table of contents for children
# File lib/jekyll-page_extensions.rb, line 43 def render(context) site = context.registers[:site] sitemap = Sitemap.new(site) page = site.find_page(path: context['page']['path']) page.toc(sitemap) end