From 5aaffb5bf2e324b302b3a3fee6ffc2b9244baf8b Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Fri, 28 Feb 2025 16:18:56 +0800 Subject: feat(git): use non-root and add robots. --- www/config/_default/hugo.yaml | 2 ++ www/layouts/robots.txt | 4 ++++ 2 files changed, 6 insertions(+) create mode 100644 www/layouts/robots.txt (limited to 'www') diff --git a/www/config/_default/hugo.yaml b/www/config/_default/hugo.yaml index d66ef30..4ade102 100644 --- a/www/config/_default/hugo.yaml +++ b/www/config/_default/hugo.yaml @@ -2,6 +2,8 @@ baseURL: "https://crupest.life/" title: "crupest's life" copyright: "CC BY-NC 4.0" +enableRobotsTXT: true + languageCode: "en" defaultContentLanguage: "en" hasCJKLanguage: true diff --git a/www/layouts/robots.txt b/www/layouts/robots.txt new file mode 100644 index 0000000..962c62a --- /dev/null +++ b/www/layouts/robots.txt @@ -0,0 +1,4 @@ +User-agent: * +Disallow: /git/*/snapshot/* +Disallow: /git/*/blame/* +Allow: / -- cgit v1.2.3