diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-02-28 16:18:56 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-02-28 16:33:19 +0800 |
commit | 5aaffb5bf2e324b302b3a3fee6ffc2b9244baf8b (patch) | |
tree | 726e6b0ec2f86a4530161e4e4e90c0632c134f5a /www | |
parent | d201f6ef9c4b937f0ae8ee98dc291d7cfa10da92 (diff) | |
download | crupest-5aaffb5bf2e324b302b3a3fee6ffc2b9244baf8b.tar.gz crupest-5aaffb5bf2e324b302b3a3fee6ffc2b9244baf8b.tar.bz2 crupest-5aaffb5bf2e324b302b3a3fee6ffc2b9244baf8b.zip |
feat(git): use non-root and add robots.
Diffstat (limited to 'www')
-rw-r--r-- | www/config/_default/hugo.yaml | 2 | ||||
-rw-r--r-- | www/layouts/robots.txt | 4 |
2 files changed, 6 insertions, 0 deletions
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: / |