doc: fix templating and restore listpkg