helper for hexo - category and archive list with optional name and count transformation