ssg: StaticSitePost: use DatePublished from item for GetFileNameForProvidedSlug

This commit is contained in:
Nick Vella 2019-07-21 01:32:10 +10:00
parent cbaaa0f811
commit f18011d75e
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ namespace OpenLiveWriter.BlogClient.Clients.StaticSite
/// <returns>File name with prepended date</returns>
protected override string GetFileNameForProvidedSlug(string slug)
{
return $"{BlogPost.DatePublished.ToString("yyyy-MM-dd")}-{slug}{PUBLISH_FILE_EXTENSION}";
return $"{DatePublished.ToString("yyyy-MM-dd")}-{slug}{PUBLISH_FILE_EXTENSION}";
}
/// <summary>