Commit 7fc9436
committed
Merge branch 'feature/Sitemap-IsPrivateBranch' into develop
The new `IsPrivateBranch` attribute allows entire branches of the topic tree to be excluded from the `SitemapController`. As the name suggests, this is intended for private branches that aren't otherwise crawlable by search engines, and thus should be excluded in order to avoid crawling errors and, potentially, exposure of private information. This can be used, for instance, for `Configuration` (which is internal infrastructure) and `Administration` (which is exposed as a web page, but requires authorization).
This is intended as a replacement for the recursive `NoIndex`, which excludes an entire branch if applied to `Container`, but only the current topic if applied to any other content type; this inconsistency is confusing, and the name is unintuitive. The name `IsPrivateBranch` is much more explicit about the scope and intent, and will better distinguish it from the `NoIndex` attribute on `Page`, which will continue to be used to request that publicly available pages not be indexed by either search engines (via the `noindex` metatag) or the `SitemapController`.
This resolves #72.3 files changed
Lines changed: 31 additions & 4 deletions
File tree
- OnTopic.AspNetCore.Mvc.Tests
- TestDoubles
- OnTopic.AspNetCore.Mvc/Controllers
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| |||
97 | 99 | | |
98 | 100 | | |
99 | 101 | | |
| 102 | + | |
100 | 103 | | |
101 | 104 | | |
102 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
211 | | - | |
| 210 | + | |
| 211 | + | |
212 | 212 | | |
213 | | - | |
214 | | - | |
| 213 | + | |
| 214 | + | |
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
224 | 247 | | |
225 | 248 | | |
226 | 249 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| 201 | + | |
201 | 202 | | |
202 | 203 | | |
203 | 204 | | |
| |||
0 commit comments