Skip to content

Commit f07c9a4

Browse files
committed
fix: Container in sitemap
1 parent 4a1884d commit f07c9a4

File tree

2 files changed

+34
-32
lines changed

2 files changed

+34
-32
lines changed

Directory.Packages.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<PackageVersion Include="Markdig" Version="0.38.0" />
2424
<PackageVersion Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="9.0.0-rc.2.24474.3" />
2525
<PackageVersion Include="Microsoft.Extensions.Options" Version="9.0.0-rc.2.24473.5" />
26-
<PackageVersion Include="NCronJob" Version="3.3.3" />
26+
<PackageVersion Include="NCronJob" Version="3.3.5" />
2727
<PackageVersion Include="System.ServiceModel.Syndication" Version="9.0.0-rc.2.24473.5" />
2828
</ItemGroup>
2929
<ItemGroup Label="Tests">

src/LinkDotNet.Blog.Web/Features/Admin/Sitemap/SitemapPage.razor

Lines changed: 33 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,40 @@
22
@using LinkDotNet.Blog.Web.Features.Admin.Sitemap.Services
33
@inject ISitemapService SitemapService
44
@attribute [Authorize]
5-
<h3>Sitemap</h3>
6-
<div class="row px-2">
7-
<p>A sitemap is a file which lists all important links in a webpage. It helps crawler to find all of the
8-
important pages. Especially newer sites benefit from having a sitemap.xml.
9-
The file will be created at the root of the site. To see the sitemap.xml go here: <a href="/sitemap.xml">sitemap.xml</a>.<br/>
10-
If you get a 404 there is currently no sitemap.xml</p>
11-
<button class="btn btn-primary" @onclick="CreateSitemap" disabled="@isGenerating">Create Sitemap</button>
5+
<div class="container">
6+
<h3>Sitemap</h3>
7+
<div class="row px-2">
8+
<p>A sitemap is a file which lists all important links in a webpage. It helps crawler to find all of the
9+
important pages. Especially newer sites benefit from having a sitemap.xml.
10+
The file will be created at the root of the site. To see the sitemap.xml go here: <a href="/sitemap.xml">sitemap.xml</a>.<br/>
11+
If you get a 404 there is currently no sitemap.xml</p>
12+
<button class="btn btn-primary" @onclick="CreateSitemap" disabled="@isGenerating">Create Sitemap</button>
1213

13-
@if (isGenerating)
14-
{
15-
<Loading></Loading>
16-
}
17-
@if (sitemapUrlSet is not null)
18-
{
19-
<table class="table table-striped table-hover h-50">
20-
<thead>
21-
<tr>
22-
<th>Url</th>
23-
<th>Last Changed</th>
24-
</tr>
25-
</thead>
26-
<tbody>
27-
@foreach (var url in sitemapUrlSet.Urls)
28-
{
29-
<tr>
30-
<td>@url.Location</td>
31-
<td>@url.LastModified</td>
32-
</tr>
33-
}
34-
</tbody>
35-
</table>
36-
}
14+
@if (isGenerating)
15+
{
16+
<Loading></Loading>
17+
}
18+
@if (sitemapUrlSet is not null)
19+
{
20+
<table class="table table-striped table-hover h-50">
21+
<thead>
22+
<tr>
23+
<th>Url</th>
24+
<th>Last Changed</th>
25+
</tr>
26+
</thead>
27+
<tbody>
28+
@foreach (var url in sitemapUrlSet.Urls)
29+
{
30+
<tr>
31+
<td>@url.Location</td>
32+
<td>@url.LastModified</td>
33+
</tr>
34+
}
35+
</tbody>
36+
</table>
37+
}
38+
</div>
3739
</div>
3840

3941
@code {

0 commit comments

Comments
 (0)