Skip to content

Commit 5e633b8

Browse files
authored
Merge pull request #13 from DuendeSoftware/mb/robotstxt
Remove robots meta tag handling and add robots.txt file.
2 parents cf4dde1 + 765a98a commit 5e633b8

File tree

3 files changed

+3
-14
lines changed

3 files changed

+3
-14
lines changed

src/Pages/Index.cshtml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@
55
@using Duende.IdentityServer.Models
66
@model IdentityServerHost.Pages.Home.Index
77

8-
@section robots
9-
{
10-
<meta name="robots" content="index, follow, archive" />
11-
}
12-
138
<!-- Google Tag Manager (noscript) -->
149
<noscript>
1510
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MMR39D3G"

src/Pages/Shared/_Layout.cshtml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,6 @@
1313
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
1414
<link rel="stylesheet" href="~/lib/bootstrap4-glyphicons/css/bootstrap-glyphicons.min.css" />
1515
<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-
}
2516
</head>
2617
<body>
2718
<partial name="_Nav" />

src/wwwroot/robots.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
User-agent: *
2+
Allow: /$
3+
Disallow: /

0 commit comments

Comments
 (0)