BlogService now fetches from Media.JoshHeaps.Net API via HttpClient with in-memory caching (5-min TTL) and stale cache fallback. Removed Markdig/YamlDotNet dependencies. All page models now async. Co-Authored-By: Claude Opus 4.6 <[email protected]>
13 lines
412 B
C#
13 lines
412 B
C#
namespace JoshHeaps.Net.Models;
|
|
|
|
public class BlogPost
|
|
{
|
|
public long Id { get; set; }
|
|
public string Slug { get; set; } = string.Empty;
|
|
public string Title { get; set; } = string.Empty;
|
|
public DateTime PublishedDate { get; set; }
|
|
public string Summary { get; set; } = string.Empty;
|
|
public List<string> Tags { get; set; } = [];
|
|
public string HtmlContent { get; set; } = string.Empty;
|
|
}
|