Commit 5cddb9b
xxwhirlpool
·
2026-03-27 17:01:02 -0400 EDT
parent f4f69ac
dots.girlonthemoon.xyz
2 files changed,
+27,
-0
+23,
-0
| ... | ... | @@ -0,0 +1,23 @@ | |
| 1 | + | #!/usr/bin/env bash | |
| 2 | + | ||
| 3 | + | dots_home="/home/kat/dotfiles" | |
| 4 | + | orange_var="ef9f76" | |
| 5 | + | pink_var="f08eca" | |
| 6 | + | ||
| 7 | + | build_site() { | |
| 8 | + | # build | |
| 9 | + | pgit --revs main --repo "/home/kat/dotfiles" --label dots --out ./public --theme catppuccin-frappe | |
| 10 | + | # replace orange with pink | |
| 11 | + | sed -i "s/$orange_var/$pink_var/g" "./public/vars.css" | |
| 12 | + | } | |
| 13 | + | ||
| 14 | + | sync_site() { | |
| 15 | + | # deploy to pgs.sh | |
| 16 | + | rsync --delete -rv ./public/ pgs.sh:/dots | |
| 17 | + | # delete public/ folder in dotfiles dir | |
| 18 | + | rm -rf /home/kat/dotfiles/public/ | |
| 19 | + | } | |
| 20 | + | ||
| 21 | + | case "$1" in | |
| 22 | + | "") cd "$dots_home" && build_site && sync_site;; | |
| 23 | + | esac |
M
justfile
+4,
-0