summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdback <tyler@tdback.net>2025-01-26 11:54:00 -0500
committertdback <tyler@tdback.net>2025-01-26 11:54:00 -0500
commit9fbfde3ae45cbdce118b5c9cc80b7b0cd3af0737 (patch)
treece922a2d42d798df9964c1e8a2ebc39e9d1ce88b
parentcf9da6397d8339c98ca21ef9aafe8504117c076d (diff)
flake: update path when creating a new post
-rw-r--r--flake.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix
index d51c525..450b803 100644
--- a/flake.nix
+++ b/flake.nix
@@ -27,7 +27,7 @@
SITE="$HOME/projects/tdback.net"
new-post() {
- hugo new "posts/$1/index.md"
+ hugo new "$SITE/content/posts/$1/index.md"
$EDITOR "$SITE/content/posts/$1/index.md"
}