fork from https://www.dokuwiki.org/plugin:catlist