fix: 部分错误的链接
All checks were successful
Build blog docker image / Build-Blog-Image (push) Successful in 1m28s

This commit is contained in:
jackfiled 2024-07-12 15:48:53 +08:00
parent f30d6e10af
commit f6838f2c9b
3 changed files with 14 additions and 14 deletions

View File

@ -181,7 +181,7 @@ public class RendererService(ILogger<RendererService> logger,
if (pos == -1)
{
// 自动截取前50个字符
pos = 50;
pos = content.FileContent.Length < 50 ? content.FileContent.Length : 50;
}
for (int i = 0; i < pos; i++)

View File

@ -21,7 +21,7 @@
<FluentStack Orientation="@Orientation.Horizontal"
HorizontalAlignment="@HorizontalAlignment.Center"
HorizontalGap="20">
<a href="archives">
<a href="/blog/archives">
<div>
<FluentLabel Typo="@Typography.H4">
文章
@ -32,7 +32,7 @@
</FluentLabel>
</div>
</a>
<a href="tags">
<a href="/blog/tags">
<div>
<FluentLabel Typo="@Typography.H4">
标签

View File

@ -74,51 +74,51 @@
HorizontalGap="20">
@if (Page != 1)
{
<a href="./?page=@(Page - 1)#blog-content" class="pagination-item">
<a href="/blog/?page=@(Page - 1)#blog-content" class="pagination-item">
<i class="chevron-left"></i>
</a>
}
@if (Page == 1)
{
<a href="./?page=1#blog-content" class="pagination-item">
<a href="/blog/?page=1#blog-content" class="pagination-item">
<span>1</span>
</a>
<a href="./?page=2#blog-content" class="pagination-item">
<a href="/blog/?page=2#blog-content" class="pagination-item">
<span>2</span>
</a>
<a href="./?page=3#blog-content" class="pagination-item">
<a href="/blog/?page=3#blog-content" class="pagination-item">
<span>3</span>
</a>
}
else if (Page == _pageCount)
{
<a href="./?page=@(_pageCount - 2)#blog-content" class="pagination-item">
<a href="/blog/?page=@(_pageCount - 2)#blog-content" class="pagination-item">
<span>@(_pageCount - 2)</span>
</a>
<a href="./?page=@(_pageCount - 1)#blog-content" class="pagination-item">
<a href="/blog/?page=@(_pageCount - 1)#blog-content" class="pagination-item">
<span>@(_pageCount - 1)</span>
</a>
<a href="./?page=@(_pageCount)#blog-content" class="pagination-item">
<a href="/blog/?page=@(_pageCount)#blog-content" class="pagination-item">
<span>@(_pageCount)</span>
</a>
}
else
{
<a href="./?page=@(Page - 1)#blog-content" class="pagination-item">
<a href="/blog/?page=@(Page - 1)#blog-content" class="pagination-item">
<span>@(Page - 1)</span>
</a>
<a href="./?page=@(Page)#blog-content" class="pagination-item">
<a href="/blog/?page=@(Page)#blog-content" class="pagination-item">
<span>@(Page)</span>
</a>
<a href="./?page=@(Page + 1)#blog-content" class="pagination-item">
<a href="/blog/?page=@(Page + 1)#blog-content" class="pagination-item">
<span>@(Page + 1)</span>
</a>
}
@if (Page != _pageCount)
{
<a href="./?page=@(Page + 1)#blog-content" class="pagination-item">
<a href="/blog/?page=@(Page + 1)#blog-content" class="pagination-item">
<i class="chevron-right"></i>
</a>
}