Add blog post preview
This commit is contained in:
parent
a47f18533b
commit
fa143f5ab4
4 changed files with 20 additions and 5 deletions
|
@ -16,15 +16,15 @@ namespace Website.ViewModels
|
|||
Content = Markdown.ToHtml(blogPost.Content, GetPipeline()).Trim();
|
||||
}
|
||||
|
||||
private MarkdownPipeline GetPipeline()=>new MarkdownPipelineBuilder()
|
||||
protected MarkdownPipeline GetPipeline()=>new MarkdownPipelineBuilder()
|
||||
//.UseAdvancedExtensions()
|
||||
.UseAutoLinks()
|
||||
.UseSoftlineBreakAsHardlineBreak()
|
||||
.UseSyntaxHighlighting()
|
||||
.Build();
|
||||
|
||||
public string Title { get; private set; }
|
||||
public string Content { get; private set; }
|
||||
public string Title { get; private set; }
|
||||
public string Content { get; protected set; }
|
||||
public DateTime Timestamp { get; private set; }
|
||||
public string Url { get; private set; }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue