make get_archive_summary a contextfunction