justfiles for automating various tasks on my workstation

~blogging.just

Changed files
+3 -12
+3 -12
blogging.just
···
EOF
nvim "${BLOG_DIR}/content/posts/${FILENAME}"
-
echo 'To add this entry to gemlog, run `blog2gmi ${BLOG_DIR}/content/posts/${FILENAME} "Blog Post Title"`'
-
-
# Convert blog entry to gemlog
-
[group('blogging')]
-
blog2gmi filename title:
-
#!/usr/bin/env bash
-
SCRIPT_DIR="${HOME}/repos/tildegit.org/hyperreal/hyperreal.coffee/scripts"
-
BLOG_POST_FILE={{ filename }}
-
BLOG_POST_TITLE={{ title }}
-
"${SCRIPT_DIR}/blog2gemini ${BLOG_POST_FILE} ${BLOG_POST_TITLE}"
-
echo "To push and deploy changes, run `push-deploy`"
# Convert website page changes to gemtext and send to capsule
[group('blogging')]
···
-not -name "_index.md" \
-exec md2gemini -w -d "$CAPSULE_DIR" -f -m {} \;
-
echo "To push and deploy changes, run `push-deploy`"
# Push hyperreal.coffee changes to git and deploy website and capsule
[group('blogging')]
···
EOF
nvim "${BLOG_DIR}/content/posts/${FILENAME}"
+
echo "To convert to gemlog:"
+
echo "blog2gemlog ${BLOG_DIR}/content/posts/${FILENAME} \"Blog title\""
# Convert website page changes to gemtext and send to capsule
[group('blogging')]
···
-not -name "_index.md" \
-exec md2gemini -w -d "$CAPSULE_DIR" -f -m {} \;
+
echo "To push and deploy changes, run push-deploy"
# Push hyperreal.coffee changes to git and deploy website and capsule
[group('blogging')]