Fix issue with blog preview when content under 1000 chars.

This commit is contained in:
Robert Marshall 2019-08-26 15:04:32 +01:00
parent 3a8aedd653
commit 0f64014b30
6 changed files with 38 additions and 10 deletions

View file

@ -12,8 +12,7 @@ namespace Website.ViewModels
Title = blogPost.Title;
Timestamp = FormatTimestamp(blogPost.Timestamp);
Url = blogPost.Url;
Content = Markdown.ToHtml(blogPost.Content, GetPipeline()).Trim();
Content = blogPost.Content;
}
string GetDaySuffix(int day) {
@ -49,5 +48,6 @@ namespace Website.ViewModels
public string Content { get; protected set; }
public string Timestamp { get; private set; }
public string Url { get; private set; }
public object ContentHtml => Markdown.ToHtml(Content, GetPipeline()).Trim();
}
}