New folder structur for bible_journal.
This commit is contained in:
		
							parent
							
								
									eece2e7037
								
							
						
					
					
						commit
						d1e513ff91
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		
							
								
								
									
										3
									
								
								justfile
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								justfile
									
										
									
									
									
								
							|  | @ -6,7 +6,8 @@ finish message: | ||||||
| create book chapter v1 v2: | create book chapter v1 v2: | ||||||
|     #!/usr/bin/env bash |     #!/usr/bin/env bash | ||||||
|     set -euxo pipefail |     set -euxo pipefail | ||||||
|     passage='{{book}}_{{chapter}}:{{v1}}-{{v2}}' |     mkdir -p '{{book}}' | ||||||
|  |     passage='{{book}}/{{chapter}}:{{v1}}-{{v2}}' | ||||||
|     cd content/bible_journal |     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" |     sed -e '/\$/{s/\$1/{{chapter}}/; s/\$2/{{v1}}/; s/\$3/{{v2}}/;}' -e "3s/{}/$(date +%Y-%m-%d)/" _template.txt > "${passage}.md" | ||||||
|     $EDITOR + "${passage}.md" |     $EDITOR + "${passage}.md" | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue