aboutsummaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-02-28 16:18:56 +0800
committerYuqian Yang <crupest@crupest.life>2025-02-28 16:33:19 +0800
commit4d3232069bbb6f89cbbf50ca64209d39fdfcd89f (patch)
tree031b86d225ed9690893a42296023c14ba1a0a984 /www
parent0052b9d898e52584b53a4de219bdb58df20be0e1 (diff)
downloadcrupest-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.yaml2
-rw-r--r--www/layouts/robots.txt4
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: /