Add condition to exclude subpages