]> git.taranathan.com Git - blog.git/commitdiff
6/1/26
authormoo <moogoesmeow123@gmail.com>
Mon, 1 Jun 2026 21:12:20 +0000 (14:12 -0700)
committermoo <moogoesmeow123@gmail.com>
Mon, 1 Jun 2026 21:12:20 +0000 (14:12 -0700)
content/blog/test.md [new file with mode: 0644]
justfile [new file with mode: 0644]

diff --git a/content/blog/test.md b/content/blog/test.md
new file mode 100644 (file)
index 0000000..e03dc13
--- /dev/null
@@ -0,0 +1,4 @@
++++
+name = "test"
+date = 2026-06-01
++++
diff --git a/justfile b/justfile
new file mode 100644 (file)
index 0000000..5c05a1f
--- /dev/null
+++ b/justfile
@@ -0,0 +1,22 @@
+mini name:
+    git switch main
+    echo "+++" >> ./content/miniblog/{{name}}.md
+    echo 'name = "{{name}}"' >> ./content/miniblog/{{name}}.md
+    echo "date = {{`date +%Y-%m-%d`}}" >> ./content/miniblog/{{name}}.md
+    echo "+++" >> ./content/miniblog/{{name}}.md
+    helix ./content/miniblog/{{name}}.md
+    
+blog name:
+    git switch main
+    echo "+++" >> ./content/blog/{{name}}.md
+    echo 'name = "{{name}}"' >> ./content/blog/{{name}}.md
+    echo "date = {{`date +%Y-%m-%d`}}" >> ./content/blog/{{name}}.md
+    echo "+++" >> ./content/blog/{{name}}.md
+    helix ./content/blog/{{name}}.md
+
+deploy:
+    git switch main
+    git add -A
+    git commit -a
+    git push
+    sshpass -p {{`pass ssh-keys/default`}} ssh root@taranathan.com 'cd /root/blog/ && git pull'