diff options
-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/ } ''; |