mirror of
https://github.com/nikdoof/website-hugo.git
synced 2025-12-13 13:22:22 +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"
|
INDEX_PAGE="${TARGET_FOLDER}/index.html"
|
||||||
echo "<meta http-equiv="refresh" content="5"><p>Deploying...</p>" > "${INDEX_PAGE}"
|
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
|
# Checkout a local bare copy, to speed up later checkouts
|
||||||
ORIGIN=$(git config --get remote.origin.url)
|
ORIGIN=$(git config --get remote.origin.url)
|
||||||
BARE_FOLDER=`mktemp -u -d`
|
BARE_FOLDER=`mktemp -u -d`
|
||||||
|
|||||||
Reference in New Issue
Block a user