From d1e513ff919bc8b0a814b33b9dc318052f6b6ed7 Mon Sep 17 00:00:00 2001 From: Lyle Mantooth Date: Thu, 25 Jul 2024 07:27:43 -0400 Subject: [PATCH] New folder structur for bible_journal. --- justfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/justfile b/justfile index 9038259..fdd4700 100644 --- a/justfile +++ b/justfile @@ -6,7 +6,8 @@ finish message: create book chapter v1 v2: #!/usr/bin/env bash set -euxo pipefail - passage='{{book}}_{{chapter}}:{{v1}}-{{v2}}' + mkdir -p '{{book}}' + passage='{{book}}/{{chapter}}:{{v1}}-{{v2}}' cd content/bible_journal sed -e '/\$/{s/\$1/{{chapter}}/; s/\$2/{{v1}}/; s/\$3/{{v2}}/;}' -e "3s/{}/$(date +%Y-%m-%d)/" _template.txt > "${passage}.md" $EDITOR + "${passage}.md"