Browse Source

refactor:优化脚本

王智勇 4 years ago
parent
commit
901438f29e
2 changed files with 3 additions and 0 deletions
  1. 1 0
      blog.sh
  2. 2 0
      robots.txt

+ 1 - 0
blog.sh

@@ -8,5 +8,6 @@ hexo clean
 sleep 1
 #	 nohup hexo server >hexo-blog.log 2>&1 &
 hexo g
+cp -f robots.txt public/robots.txt
 systemctl restart nginx
 echo 'start success !'

+ 2 - 0
robots.txt

@@ -0,0 +1,2 @@
+User-Agent: SemrushBot
+Disallow: /