示例#1
0
 public StaticPage(
     string fileName,
     string title,
     string uriSegment,
     bool isPublished,
     string html,
     PageMetadata pageMetadata)
 {
     FileName     = fileName;
     Title        = title;
     UriSegment   = uriSegment;
     IsPublished  = isPublished;
     Html         = html;
     PageMetadata = pageMetadata;
 }
示例#2
0
 public BlogPost(string fileName,
                 string title,
                 string author,
                 DateTime publishedOn,
                 bool isPublished,
                 bool isListed,
                 string slug,
                 string html,
                 string?introHtml,
                 PageMetadata pageMetadata)
 {
     FileName     = fileName;
     Title        = title;
     Author       = author;
     PublishedOn  = publishedOn;
     IsPublished  = isPublished;
     IsListed     = isListed;
     Slug         = slug;
     Html         = html;
     IntroHtml    = introHtml;
     PageMetadata = pageMetadata;
 }