diff options
author | tdback <tyler@tdback.net> | 2025-02-09 20:02:15 -0500 |
---|---|---|
committer | tdback <tyler@tdback.net> | 2025-02-09 20:02:15 -0500 |
commit | f06c0ba60216a866e59fd785be6d4abd6874cc2b (patch) | |
tree | eb18acd7cc963415c69267db331511616ca414fa | |
parent | 9fbfde3ae45cbdce118b5c9cc80b7b0cd3af0737 (diff) |
flake: use direnv, remove alias conflict with deploy-rs
-rw-r--r-- | .envrc | 1 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | flake.nix | 12 |
3 files changed, 3 insertions, 11 deletions
@@ -0,0 +1 @@ +use flake @@ -1,2 +1,3 @@ /public /resources +/.direnv/ @@ -26,17 +26,7 @@ shellHook = '' SITE="$HOME/projects/tdback.net" - new-post() { - hugo new "$SITE/content/posts/$1/index.md" - $EDITOR "$SITE/content/posts/$1/index.md" - } - - del-post() { - POST="$SITE/content/posts/$1" - [ -d $POST ] && rm -r $POST - } - - deploy() { + publish() { hugo && rsync -avz --delete public/ thor:/var/www/tdback.net/ } ''; |