ssg: StaticSitePost: use DatePublished from item for GetFileNameForProvidedSlug
This commit is contained in:
parent
cbaaa0f811
commit
f18011d75e
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue