def METHOD_NAME(self, markdown, page, config, files):
    if page.url.startswith(self.root_url):
        log.info(f"Rendering tags index: {page.file.url}")
        return self.__render_tag_index(markdown, page)
    # Add page to tags index
    for tag in page.meta.get("tags", []):
        tags_index = self._tag_to_tags_index(tag)
        self.tags[tags_index][tag].append(page)