a file's attribute filter for metalsmith