OSDN Git Service

feat: enable robots.txt
authorIr1d <sirius.caffrey@gmail.com>
Tue, 21 Aug 2018 09:42:18 +0000 (17:42 +0800)
committerIr1d <sirius.caffrey@gmail.com>
Tue, 21 Aug 2018 09:42:18 +0000 (17:42 +0800)
deploy.sh
static/robots.txt [new file with mode: 0644]

index 7f5b46c..8358cd8 100644 (file)
--- a/deploy.sh
+++ b/deploy.sh
@@ -10,6 +10,8 @@ EMAIL=sirius.caffrey@gmail.com
 git remote add gh-token "https://${GH_TOKEN}@github.com/$ORG/$REPO.git";
 git fetch gh-token && git fetch gh-token gh-pages:gh-pages;
 
+cp static/robots.txt site/robots.txt
+
 # Update git configuration so I can push.
 if [ "$1" != "dry" ]; then
     # Update git config.
diff --git a/static/robots.txt b/static/robots.txt
new file mode 100644 (file)
index 0000000..fa94e59
--- /dev/null
@@ -0,0 +1 @@
+Sitemap: https://oi-wiki.org/sitemap.xml
\ No newline at end of file