dots


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