format_path

in jekyll/plugins/recently_updated_generator.rb [139:157]


  def format_path(toc_entry, toc_by_id)
    path = ""
    parent_id = toc_entry[:parent_id]
    if not parent_id.nil? then
      parent_toc = toc_by_id[parent_id]

      path << format_path(parent_toc, toc_by_id) if parent_toc.key?(:parent_id)

      title = parent_toc[:title]
      if parent_toc.key?(:path) then
        path << "[#{title}](/#{parent_toc[:path]})"
      else
        path << title
      end
      path << " / "
    end
    path
  end