diff options
| author | anoduck <11767-anoduck@users.noreply.gitgud.io> | 2024-10-08 14:07:32 -0400 |
|---|---|---|
| committer | anoduck <11767-anoduck@users.noreply.gitgud.io> | 2024-10-08 14:08:35 -0400 |
| commit | 4839241851bae57f4a394f1e3ef2699940d0a3d4 (patch) | |
| tree | 61fab54910689278c99b294f3ddd98d9e32baf5e /sync-quartz.sh | |
| parent | 596be0164f5c940ae7a086024178a0c6fffd709e (diff) | |
feat(content): :memo: DevUI & Content
Further configuration of FrontMatter UI && Additions to Persons
Diffstat (limited to '')
| -rwxr-xr-x | sync-quartz.sh | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/sync-quartz.sh b/sync-quartz.sh deleted file mode 100755 index 8be7d15..0000000 --- a/sync-quartz.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash - -#Variables -# ------------------------- -REPO="/home/vassilios/Sandbox/quartz" -SRC="$REPO/public/" -REMOTE="216.189.157.213" -DST="/var/www/htdocs/corruptlamar" -USERNAME="anoduck" -# ------------------------------------------ -build() { - npx quartz build -} - -alt_files() { - rg --files-with-matches\ - --fixed-strings\ - '<meta name="robots" content="noindex">'\ - | xargs -I % sed -i '/<meta name="robots" content="noindex">/d' % -} - -sync() { - # $SRC_PATH must be _closed_ and ends _with_ a "/". - # $DST_PATH must be _open_ and ends _with_ _NO_ "/". - rsync -azv -e ssh --delete "$SRC" "$USERNAME"@"$REMOTE":"$DST" -} -# ------------------------------------------ -if [[ ! "$PWD" == "$REPO" ]]; then - cd "$REPO" || return -fi -build -cd "$SRC" || return -#alt_files -echo "Skipping cleaning of alt files" -cd "$REPO" || return -sync |
