File tree Expand file tree Collapse file tree 2 files changed +34
-32
lines changed
src/LinkDotNet.Blog.Web/Features/Admin/Sitemap Expand file tree Collapse file tree 2 files changed +34
-32
lines changed Original file line number Diff line number Diff line change 23
23
<PackageVersion Include =" Markdig" Version =" 0.38.0" />
24
24
<PackageVersion Include =" Microsoft.AspNetCore.Authentication.OpenIdConnect" Version =" 9.0.0-rc.2.24474.3" />
25
25
<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 " />
27
27
<PackageVersion Include =" System.ServiceModel.Syndication" Version =" 9.0.0-rc.2.24473.5" />
28
28
</ItemGroup >
29
29
<ItemGroup Label =" Tests" >
Original file line number Diff line number Diff line change 2
2
@using LinkDotNet .Blog .Web .Features .Admin .Sitemap .Services
3
3
@inject ISitemapService SitemapService
4
4
@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 >
12
13
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 >
37
39
</div >
38
40
39
41
@code {
You can’t perform that action at this time.
0 commit comments