Use completely standalone Razor template and compiler

This commit is contained in:
Saphire committed 2022-02-16 19:38:08 +07:00
1 parent 4a040985ee
commit d2ddfa4be4
8 files changed
+299 -90

No files matched your search

+3
View File
@@ -17,6 +17,7 @@ public record ThreadPost
[JsonIgnore]
public bool IsChapterAnnounce { get; set; } = false;
public ChapterMetadata? Chapter { get; set; }
public List<int>? RepliesTo { get; set; }
}
public record Metadata
@@ -25,6 +26,7 @@ public record Metadata
public string Author { get; set; }
public Uri AuthorPage { get; set; }
public string? AuthorTwitter { get; set; }
public string? Description { get; set; }
public Uri AssetsBaseUrl { get; set; }
public string SocialPreview { get; set; }
public List<int> Threads { get; set; }
@@ -62,6 +64,7 @@ public class TemplateModel
public Metadata Metadata { get; set; }
public DateTime Now { get; set; }
public List<ThreadPost> Posts { get; set; }
public List<ThreadPost> AllPosts { get; set; }
public string BaseUrl { get; set; }
public string ToolVersion { get; set; }
}