From 185f8e49a1cdf3b377017f75d92041e4e569404b Mon Sep 17 00:00:00 2001 From: moo Date: Mon, 1 Jun 2026 14:12:20 -0700 Subject: [PATCH] 6/1/26 --- content/blog/test.md | 4 ++++ justfile | 22 ++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 content/blog/test.md create mode 100644 justfile diff --git a/content/blog/test.md b/content/blog/test.md new file mode 100644 index 0000000..e03dc13 --- /dev/null +++ b/content/blog/test.md @@ -0,0 +1,4 @@ ++++ +name = "test" +date = 2026-06-01 ++++ diff --git a/justfile b/justfile new file mode 100644 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' -- 2.39.5