File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 5
5
@using Duende .IdentityServer .Models
6
6
@model IdentityServerHost .Pages .Home .Index
7
7
8
+ @section robots
9
+ {
10
+ <meta name =" robots" content =" index, follow, archive" />
11
+ }
12
+
8
13
<div class =" welcome-page" >
9
14
<h1 >
10
15
<img src =" ~/duende-logo.svg" class =" logo" >
Original file line number Diff line number Diff line change 13
13
<link rel =" stylesheet" href =" ~/lib/bootstrap/dist/css/bootstrap.min.css" />
14
14
<link rel =" stylesheet" href =" ~/lib/bootstrap4-glyphicons/css/bootstrap-glyphicons.min.css" />
15
15
<link rel =" stylesheet" href =" ~/css/site.css" />
16
+
17
+ @if (IsSectionDefined (" robots" ))
18
+ {
19
+ @await RenderSectionAsync (" robots" )
20
+ }
21
+ else
22
+ {
23
+ <meta name =" robots" content =" noindex" />
24
+ }
16
25
</head >
17
26
<body >
18
27
<partial name =" _Nav" />
26
35
27
36
@RenderSection( "scripts", required: false)
28
37
</body >
29
- </html >
38
+ </html >
You can’t perform that action at this time.
0 commit comments