update metalsmith middleware
add various attrs
update tags and categories output