@(essay.Value.Description)
@@ -172,7 +172,7 @@
if (flag is false)
{
- NavigationManagerInstance.NavigateTo("NotFount");
+ NavigationManagerInstance.NavigateTo("/NotFount");
}
}
diff --git a/YaeBlog/Pages/Home.razor.css b/YaeBlog/Pages/BlogIndex.razor.css
similarity index 100%
rename from YaeBlog/Pages/Home.razor.css
rename to YaeBlog/Pages/BlogIndex.razor.css
diff --git a/YaeBlog/Pages/Error.razor b/YaeBlog/Pages/Error.razor
deleted file mode 100644
index e1369dc..0000000
--- a/YaeBlog/Pages/Error.razor
+++ /dev/null
@@ -1,36 +0,0 @@
-@page "/Error"
-@using System.Diagnostics
-
-Error
-
-Error.
-An error occurred while processing your request.
-
-@if (ShowRequestId)
-{
-
- Request ID: @RequestId
-
-}
-
-Development Mode
-
- Swapping to Development environment will display more detailed information about the error that occurred.
-
-
- The Development environment shouldn't be enabled for deployed applications.
- It can result in displaying sensitive information from exceptions to end users.
- For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development
- and restarting the app.
-
-
-@code{
- [CascadingParameter] private HttpContext? HttpContext { get; set; }
-
- private string? RequestId { get; set; }
- private bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
-
- protected override void OnInitialized() =>
- RequestId = Activity.Current?.Id ?? HttpContext?.TraceIdentifier;
-
-}
diff --git a/YaeBlog/Pages/Essay.razor b/YaeBlog/Pages/Essay.razor
index 76e4c76..206fd82 100644
--- a/YaeBlog/Pages/Essay.razor
+++ b/YaeBlog/Pages/Essay.razor
@@ -1,4 +1,4 @@
-@page "/essays/{Filename}"
+@page "/blog/essays/{Filename}"
@using YaeBlog.Core.Models
@using YaeBlog.Core.Services
diff --git a/YaeBlog/Pages/Index.razor b/YaeBlog/Pages/Index.razor
new file mode 100644
index 0000000..3f4feaf
--- /dev/null
+++ b/YaeBlog/Pages/Index.razor
@@ -0,0 +1,76 @@
+@page "/"
+
+
+ 初冬的朝阳个人主页
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 初冬的朝阳 (Ricardo Ren)
+
+
+
+ a.k.a jackfiled
+
+
+
+ 世界很大,时间很长。
+
+
+
+ 一个平平无奇的CS学生。
+
+
+
+ 还太菜了,连微小的贡献都没做。
+
+
+
+
+
+
+ Github
+
+
+
+ E-Mail
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 2021 - 2023 By Ricardo Ren
+
+
+
+ 蜀ICP备2022004429号-1
+
+
+
+
+
+@code {
+
+}
diff --git a/YaeBlog/Pages/Index.razor.css b/YaeBlog/Pages/Index.razor.css
new file mode 100644
index 0000000..b77f461
--- /dev/null
+++ b/YaeBlog/Pages/Index.razor.css
@@ -0,0 +1,15 @@
+.index-container {
+ background-color: #f0f2f5;
+}
+
+.avatar-image {
+ margin: 25px;
+ width: 100%;
+ height: auto;
+ max-width: 300px;
+ max-height: 300px;
+}
+
+.footer-zone {
+ text-align: center;
+}
diff --git a/YaeBlog/Pages/Links.razor b/YaeBlog/Pages/Links.razor
index 8d10eb0..c5fb922 100644
--- a/YaeBlog/Pages/Links.razor
+++ b/YaeBlog/Pages/Links.razor
@@ -1,4 +1,4 @@
-@page "/links"
+@page "/blog/links"
@using YaeBlog.Core.Models
@inject BlogOptions BlogOptionsInstance
diff --git a/YaeBlog/Pages/Tags.razor b/YaeBlog/Pages/Tags.razor
index f04960f..d988d8f 100644
--- a/YaeBlog/Pages/Tags.razor
+++ b/YaeBlog/Pages/Tags.razor
@@ -1,4 +1,4 @@
-@page "/tags"
+@page "/blog/tags"
@using YaeBlog.Core.Models
@using YaeBlog.Core.Services
@@ -33,7 +33,7 @@
@foreach (KeyValuePair pair in EssayContentInstance.Tags)
{
-
+
@pair.Key
@@ -52,7 +52,7 @@
{
-
+
@(essay.PublishTime.ToString("yyyy-MM-dd"))
diff --git a/YaeBlog/YaeBlog.csproj b/YaeBlog/YaeBlog.csproj
index b498de4..8c04e9b 100644
--- a/YaeBlog/YaeBlog.csproj
+++ b/YaeBlog/YaeBlog.csproj
@@ -4,30 +4,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
- <_ContentIncludedByDefault Remove="Components\Pages\About.razor" />
- <_ContentIncludedByDefault Remove="Components\Pages\Archives.razor" />
- <_ContentIncludedByDefault Remove="Components\Pages\Error.razor" />
- <_ContentIncludedByDefault Remove="Components\Pages\Essay.razor" />
- <_ContentIncludedByDefault Remove="Components\Pages\Home.razor" />
- <_ContentIncludedByDefault Remove="Components\Pages\Links.razor" />
- <_ContentIncludedByDefault Remove="Components\Pages\NotFound.razor" />
- <_ContentIncludedByDefault Remove="Components\Pages\Tags.razor" />
- <_ContentIncludedByDefault Remove="Components\Layout\MainLayout.razor" />
-
-
net8.0
enable
diff --git a/YaeBlog/appsettings.json b/YaeBlog/appsettings.json
index 3ebd202..9bc3b85 100644
--- a/YaeBlog/appsettings.json
+++ b/YaeBlog/appsettings.json
@@ -29,7 +29,7 @@
},
{
"Name": "志田千陽",
- "Description": "日出多期待",
+ "Description": "日出多值得",
"Link": "https://zzachary.top/",
"AvatarImage": "https://zzachary.top/img/ztqy_hub928259802d192ff5718c06370f0f2c4_48203_300x0_resize_q75_box.jpg"
},
diff --git a/YaeBlog/wwwroot/images/blog-icon.png b/YaeBlog/wwwroot/images/blog-icon.png
new file mode 100644
index 0000000..6f05694
Binary files /dev/null and b/YaeBlog/wwwroot/images/blog-icon.png differ
diff --git a/YaeBlog/wwwroot/images/git-icon.png b/YaeBlog/wwwroot/images/git-icon.png
new file mode 100644
index 0000000..cfb5436
Binary files /dev/null and b/YaeBlog/wwwroot/images/git-icon.png differ
diff --git a/YaeBlog/wwwroot/images/wiki-icon.png b/YaeBlog/wwwroot/images/wiki-icon.png
new file mode 100644
index 0000000..436f27f
Binary files /dev/null and b/YaeBlog/wwwroot/images/wiki-icon.png differ