Skip to content

Commit 946a0f9

Browse files
wu-shengclaude
andcommitted
docs: add robots.txt with sitemap for search-engine indexing
Enable Hugo's robots.txt (enableRobotsTXT) and add a template that allows all crawlers and points to the sitemap, so search engines can discover the docs site. The sitemap.xml is already generated by Hugo. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent f7e3a5c commit 946a0f9

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

hugo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title = "SkyAPM .NET Agent"
33
theme = "hextra"
44
enableGitInfo = true
55
enableInlineShortcodes = true
6+
enableRobotsTXT = true
67

78
[markup]
89
[markup.highlight]

layouts/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+
Sitemap: {{ "sitemap.xml" | absURL }}

0 commit comments

Comments
 (0)