From 12777c227db1cb2bd79b794e92d3ecb5e22157fc Mon Sep 17 00:00:00 2001 From: jackfiled Date: Sun, 28 Jul 2024 14:30:08 +0800 Subject: [PATCH] add: License disclaimer. --- YaeBlog/Components/LicenseDisclaimer.razor | 36 +++++++++++++++++++ .../Components/LicenseDisclaimer.razor.css | 2 ++ YaeBlog/Pages/Essays.razor | 11 +++++- 3 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 YaeBlog/Components/LicenseDisclaimer.razor create mode 100644 YaeBlog/Components/LicenseDisclaimer.razor.css 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 {