def get_pages()

in plugins/asfindex.py [0:0]


def get_pages(generators):
    site_index = []
    for g in generators:
        if isinstance(g, PagesGenerator):
            for p in g.pages:
                # use an absolute path
                save_as = '/' + p.save_as
                if save_as.endswith('/index.html'):
                    # use "/" for the filename of index.html files assuring that they are first in a folder's list
                    save_as = save_as[:-10]
                # extract the path name
                path, _page = os.path.split(save_as)
                site_index.append((path, save_as, p.title))
    site_index.sort()
    return site_index