diff options
author | mjfernez <mjfernez@gmail.com> | 2021-10-15 20:10:42 -0400 |
---|---|---|
committer | mjfernez <mjfernez@gmail.com> | 2021-10-15 20:10:42 -0400 |
commit | ca1b0f807485df67c9c460f3c8dc925fd98ba4f2 (patch) | |
tree | d597590ee105b94b66ef2624ea691e6476c87170 /panupdate | |
parent | 00895edb42a8d0913651de71fcf0015f247e72f0 (diff) | |
download | site-files-ca1b0f807485df67c9c460f3c8dc925fd98ba4f2.tar.gz |
PGP key and panupdate script to make easier writing
Mostly just getting markdown to html down pat. Some starting articles,
but not finished yet.
Diffstat (limited to 'panupdate')
-rwxr-xr-x | panupdate | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/panupdate b/panupdate new file mode 100755 index 0000000..1688fe8 --- /dev/null +++ b/panupdate @@ -0,0 +1,14 @@ +#!/bin/bash + +for dir in $(ls .md) +do + for file in $(find .md/$dir) + do + if [[ "$file" == *.md ]] + then + newfile=$(sed "s/\.md\///; s/md/html/" <<< $file) + echo "Saved "$file" to "$newfile + pandoc -f markdown-smart $file -t html -o $newfile + fi + done +done |