コード例 #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
ファイル: BlogPost.cs プロジェクト: andrewjsaid/drudoca.blog
 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;
 }