public DocumentFile CloneForPage(string urlFormat, string prependPathFormat, Paginator paginator) { var prependPath = String.Format(prependPathFormat, paginator.Pagination.Page); var prependUrl = String.Format(urlFormat, paginator.Pagination.Page); var dupe = new DocumentFile(this); var updateFileName = Path.GetFileName(dupe.OutputRelativePath); dupe.OutputRelativePath = Path.Combine(prependPath, updateFileName); dupe.OutputPath = Path.Combine(dupe.OutputRootPath, prependPath, updateFileName); dupe.RelativeUrl = String.Concat(prependUrl, updateFileName.Equals("index.html", StringComparison.OrdinalIgnoreCase) ? String.Empty : updateFileName); dupe.Paginator = paginator; return dupe; }