Add {filename} as permlink pattern variable.