diff options
| author | anoduck <9925396+anoduck@users.noreply.github.com> | 2024-11-04 08:25:05 -0500 |
|---|---|---|
| committer | anoduck <9925396+anoduck@users.noreply.github.com> | 2024-11-04 08:25:05 -0500 |
| commit | b5e782b7fd8127d9ecb4668e1471b4c93db9c15e (patch) | |
| tree | 9f783183f220adf6bcec8a1b6f9936179a330114 /sync.sh | |
| parent | 451a53e9dececfb6e1e654e2bc06643ca581d04f (diff) | |
fix(content): :bug: Repaired broken links
repaired broken links and renamed menu labels
Diffstat (limited to '')
| -rwxr-xr-x | sync.sh | 18 |
1 files changed, 14 insertions, 4 deletions
@@ -5,6 +5,7 @@ REPO="$HOME/Sandbox/hinode-template" SRC="$REPO/public/" DSRC="$REPO/docs-server/" +DSRBTS="$DSRC/robots.txt" REMOTE="216.189.157.213" DST="/var/www/htdocs/corruptlamar" DSDST="/var/www/htdocs/docs" @@ -12,6 +13,9 @@ USERNAME="anoduck" API="f18dd78af41a4d1ab6d15d7099522c61" KEYFILE="$SRC/$API.txt" # ------------------------------------------ +rbts="User-agent: * +Disallow: /" +# ------------------------------------------ # request='POST /IndexNow HTTP/1.1 # Content-Type: application/json; charset=utf-8 # Host: api.indexnow.org @@ -39,12 +43,12 @@ INDATA='{ "https://corruptlamar.com/video", ] }' -INHEADER = "Content-Type: application/json; charset=utf-8" -INHOST = "api.indexnow.org" +INHEADER="Content-Type: application/json; charset=utf-8" +INHOST="api.indexnow.org" # ------------------------------------------ compush() { git add . - git commit -am $1 + git commit -am "$1" setver autopatch } @@ -74,6 +78,12 @@ generate_key() { echo "$KEY" > "$KEYFILE" fi } + +generate_robots() { + if ! [[ -e "$DSRBTS" ]]; then + echo "$rbts" > "$DSRBTS" + fi +} # ------------------------------------------ if [[ ! "$PWD" == "$REPO" ]]; then cd "$REPO" || return @@ -81,7 +91,7 @@ fi # compush build cd "$SRC" || return -generate_key && indexnow +generate_key && indexnow && generate_robots #alt_files echo "Skipping cleaning of alt files" cd "$REPO" || return |
