diff --git a/YaeBlog/Commands/YaeBlogCommand.cs b/YaeBlog/Commands/YaeBlogCommand.cs index 88c4043..94815c5 100644 --- a/YaeBlog/Commands/YaeBlogCommand.cs +++ b/YaeBlog/Commands/YaeBlogCommand.cs @@ -70,7 +70,6 @@ public sealed class YaeBlogCommand builder.Services.AddControllers(); builder.AddYaeBlog(); builder.AddWatcher(); - builder.AddTailwindWatcher(); WebApplication application = builder.Build(); diff --git a/YaeBlog/Components/Anchor.razor b/YaeBlog/Components/Anchor.razor new file mode 100644 index 0000000..efab799 --- /dev/null +++ b/YaeBlog/Components/Anchor.razor @@ -0,0 +1,9 @@ +@Text + +@code { + [Parameter] public string? Address { get; set; } + + [Parameter] public string? Text { get; set; } + + [Parameter] public bool NewPage { get; set; } +} diff --git a/YaeBlog/Components/App.razor b/YaeBlog/Components/App.razor index a30f2cd..f6d881b 100644 --- a/YaeBlog/Components/App.razor +++ b/YaeBlog/Components/App.razor @@ -1,5 +1,5 @@  - + @@ -13,13 +13,8 @@ - - - - - + + diff --git a/YaeBlog/Components/BlogInformationCard.razor b/YaeBlog/Components/BlogInformationCard.razor index c14f1c7..b8b3383 100644 --- a/YaeBlog/Components/BlogInformationCard.razor +++ b/YaeBlog/Components/BlogInformationCard.razor @@ -4,54 +4,42 @@ @inject IEssayContentService Contents @inject BlogOptions Options -
-
-
- @* Ricardo's avatar *@ -
+
+
+ Ricardo's Avatar
-
-
- “奇奇怪怪东西的聚合地” -
+
+ “奇奇怪怪东西的聚合地”
-
-
+
+
文章
-
- - @(Contents.Essays.Count) - +
+ @(Contents.Essays.Count)
-
-
+
+
标签
-
- - @(Contents.Tags.Count) - +
+ @(Contents.Tags.Count)
-
-
- 广而告之 -
+
+ 广而告之
-
-
-

- @(Options.Announcement) -

-
+
+

+ @(Options.Announcement) +

diff --git a/YaeBlog/Components/EssayCard.razor b/YaeBlog/Components/EssayCard.razor index 092ad87..99cb3f1 100644 --- a/YaeBlog/Components/EssayCard.razor +++ b/YaeBlog/Components/EssayCard.razor @@ -1,19 +1,19 @@ @using System.Text.Encodings.Web @using YaeBlog.Models -
-
+
+ -
-
+
+
@(Essay.PublishTime.ToString("yyyy-MM-dd"))
@foreach (string key in Essay.Tags) { -
+
# @key @@ -21,20 +21,11 @@ }
-
-
- @(Essay.Description) -
-
- -
-
- -
+
+ @(Essay.Description)
@code { - [Parameter] - public required BlogEssay Essay { get; set; } + [Parameter] public required BlogEssay Essay { get; set; } } diff --git a/YaeBlog/Components/Foonter.razor b/YaeBlog/Components/Foonter.razor index d3f9910..8a5935b 100644 --- a/YaeBlog/Components/Foonter.razor +++ b/YaeBlog/Components/Foonter.razor @@ -1,14 +1,22 @@ -
-
-

- 2021 - @(DateTimeOffset.Now.Year) © Ricardo Ren, - 由 .NET @(Environment.Version) 驱动。 +

+
+

+ 2021 - @(DateTimeOffset.Now.Year) © + + ,由 + + 驱动。

- + +@code +{ + private string DotnetVersion => $".NET {Environment.Version}"; +} diff --git a/YaeBlog/Components/LicenseDisclaimer.razor b/YaeBlog/Components/LicenseDisclaimer.razor index 9095d31..a95ca67 100644 --- a/YaeBlog/Components/LicenseDisclaimer.razor +++ b/YaeBlog/Components/LicenseDisclaimer.razor @@ -1,30 +1,28 @@ @using YaeBlog.Models @inject BlogOptions Options -