Skip to content

Add site-level robots.txt to allow crawler access - #11

Merged
smlc merged 2 commits into
masterfrom
copilot/smlc-myblog-10-add-robot-txt
Jul 23, 2026
Merged

Add site-level robots.txt to allow crawler access#11
smlc merged 2 commits into
masterfrom
copilot/smlc-myblog-10-add-robot-txt

Conversation

Copilot AI commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

The blog did not provide a robots.txt, leaving crawler behavior undefined. This change adds an explicit policy that allows robots to crawl the entire site.

  • Policy added

    • Introduced a site-level robots.txt at static/robots.txt so it is published at /robots.txt.
  • Crawler behavior

    • Configured a permissive rule for all user agents.
User-agent: *
Allow: /

Copilot AI linked an issue Jul 23, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add robot.txt to allow robot scraping Add site-level robots.txt to allow crawler access Jul 23, 2026
Copilot finished work on behalf of smlc July 23, 2026 18:51
Copilot AI requested a review from smlc July 23, 2026 18:51
@smlc
smlc marked this pull request as ready for review July 23, 2026 18:53
Copilot AI review requested due to automatic review settings July 23, 2026 18:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds an explicit site-wide robots.txt policy so crawlers have a defined, permissive rule set for the Hugo-generated site (published from static/ to the site root).

Changes:

  • Added static/robots.txt to be served as /robots.txt.
  • Configured a permissive rule allowing all user agents to crawl the entire site.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@smlc
smlc merged commit 3193af2 into master Jul 23, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add robot.txt to my blog

3 participants