diff --git a/YaeBlog/Components/LicenseDisclaimer.razor b/YaeBlog/Components/LicenseDisclaimer.razor new file mode 100644 index 0000000..8b872b5 --- /dev/null +++ b/YaeBlog/Components/LicenseDisclaimer.razor @@ -0,0 +1,36 @@ +@using YaeBlog.Core.Models + +@inject BlogOptions Options + + + +@code +{ + [Parameter] public string? EssayAddress { get; set; } +} diff --git a/YaeBlog/Components/LicenseDisclaimer.razor.css b/YaeBlog/Components/LicenseDisclaimer.razor.css new file mode 100644 index 0000000..28c8621 --- /dev/null +++ b/YaeBlog/Components/LicenseDisclaimer.razor.css @@ -0,0 +1,2 @@ +.copyright { +} diff --git a/YaeBlog/Pages/Essays.razor b/YaeBlog/Pages/Essays.razor index 44c23a0..6616712 100644 --- a/YaeBlog/Pages/Essays.razor +++ b/YaeBlog/Pages/Essays.razor @@ -16,7 +16,7 @@ -
+
@(_essay!.PublishTime.ToString("yyyy-MM-dd"))
@@ -29,11 +29,20 @@ }
+
+
+ 总字数:@(_essay!.WordCount)字。 +
+
+
@((MarkupString)_essay!.HtmlContent) + +
+
@code {