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 | 4d3232069bbb6f89cbbf50ca64209d39fdfcd89f (patch) | |
tree | 031b86d225ed9690893a42296023c14ba1a0a984 /www | |
parent | 0052b9d898e52584b53a4de219bdb58df20be0e1 (diff) | |
download | crupest-4d3232069bbb6f89cbbf50ca64209d39fdfcd89f.tar.gz crupest-4d3232069bbb6f89cbbf50ca64209d39fdfcd89f.tar.bz2 crupest-4d3232069bbb6f89cbbf50ca64209d39fdfcd89f.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: / |