mirror of
https://github.com/nikdoof/website-hugo.git
synced 2025-12-13 12:12:18 +00:00
Add a block all robots.txt
This commit is contained in:
@@ -21,6 +21,9 @@ rm -rf ${TARGET_FOLDER}/*
|
||||
INDEX_PAGE="${TARGET_FOLDER}/index.html"
|
||||
echo "<meta http-equiv="refresh" content="5"><p>Deploying...</p>" > "${INDEX_PAGE}"
|
||||
|
||||
# Create a block all robots.txt
|
||||
echo -e "User-agent: *\nDisallow: /" > ${TARGET_FOLDER}/robots.txt"
|
||||
|
||||
# Checkout a local bare copy, to speed up later checkouts
|
||||
ORIGIN=$(git config --get remote.origin.url)
|
||||
BARE_FOLDER=`mktemp -u -d`
|
||||
|
||||
Reference in New Issue
Block a user