fix: 部分错误的链接
All checks were successful
Build blog docker image / Build-Blog-Image (push) Successful in 1m28s
All checks were successful
Build blog docker image / Build-Blog-Image (push) Successful in 1m28s
This commit is contained in:
parent
f30d6e10af
commit
f6838f2c9b
|
@ -181,7 +181,7 @@ public class RendererService(ILogger<RendererService> logger,
|
||||||
if (pos == -1)
|
if (pos == -1)
|
||||||
{
|
{
|
||||||
// 自动截取前50个字符
|
// 自动截取前50个字符
|
||||||
pos = 50;
|
pos = content.FileContent.Length < 50 ? content.FileContent.Length : 50;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < pos; i++)
|
for (int i = 0; i < pos; i++)
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
<FluentStack Orientation="@Orientation.Horizontal"
|
<FluentStack Orientation="@Orientation.Horizontal"
|
||||||
HorizontalAlignment="@HorizontalAlignment.Center"
|
HorizontalAlignment="@HorizontalAlignment.Center"
|
||||||
HorizontalGap="20">
|
HorizontalGap="20">
|
||||||
<a href="archives">
|
<a href="/blog/archives">
|
||||||
<div>
|
<div>
|
||||||
<FluentLabel Typo="@Typography.H4">
|
<FluentLabel Typo="@Typography.H4">
|
||||||
文章
|
文章
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
</FluentLabel>
|
</FluentLabel>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<a href="tags">
|
<a href="/blog/tags">
|
||||||
<div>
|
<div>
|
||||||
<FluentLabel Typo="@Typography.H4">
|
<FluentLabel Typo="@Typography.H4">
|
||||||
标签
|
标签
|
||||||
|
|
|
@ -74,51 +74,51 @@
|
||||||
HorizontalGap="20">
|
HorizontalGap="20">
|
||||||
@if (Page != 1)
|
@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>
|
<i class="chevron-left"></i>
|
||||||
</a>
|
</a>
|
||||||
}
|
}
|
||||||
|
|
||||||
@if (Page == 1)
|
@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>
|
<span>1</span>
|
||||||
</a>
|
</a>
|
||||||
<a href="./?page=2#blog-content" class="pagination-item">
|
<a href="/blog/?page=2#blog-content" class="pagination-item">
|
||||||
<span>2</span>
|
<span>2</span>
|
||||||
</a>
|
</a>
|
||||||
<a href="./?page=3#blog-content" class="pagination-item">
|
<a href="/blog/?page=3#blog-content" class="pagination-item">
|
||||||
<span>3</span>
|
<span>3</span>
|
||||||
</a>
|
</a>
|
||||||
}
|
}
|
||||||
else if (Page == _pageCount)
|
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>
|
<span>@(_pageCount - 2)</span>
|
||||||
</a>
|
</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>
|
<span>@(_pageCount - 1)</span>
|
||||||
</a>
|
</a>
|
||||||
<a href="./?page=@(_pageCount)#blog-content" class="pagination-item">
|
<a href="/blog/?page=@(_pageCount)#blog-content" class="pagination-item">
|
||||||
<span>@(_pageCount)</span>
|
<span>@(_pageCount)</span>
|
||||||
</a>
|
</a>
|
||||||
}
|
}
|
||||||
else
|
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>
|
<span>@(Page - 1)</span>
|
||||||
</a>
|
</a>
|
||||||
<a href="./?page=@(Page)#blog-content" class="pagination-item">
|
<a href="/blog/?page=@(Page)#blog-content" class="pagination-item">
|
||||||
<span>@(Page)</span>
|
<span>@(Page)</span>
|
||||||
</a>
|
</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>
|
<span>@(Page + 1)</span>
|
||||||
</a>
|
</a>
|
||||||
}
|
}
|
||||||
|
|
||||||
@if (Page != _pageCount)
|
@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>
|
<i class="chevron-right"></i>
|
||||||
</a>
|
</a>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user