diff --git a/scripts/img-caption b/scripts/img-caption new file mode 100755 index 0000000..33b36ea --- /dev/null +++ b/scripts/img-caption @@ -0,0 +1,11 @@ +#!/bin/bash + +path=$1 +caption=$2 + +if [ -z "${caption}" ]; then + caption="$(basename "$path" | sed 's/-/ /g; s/\.[^.]*$//')" +fi + +echo "
$caption
$caption
" + diff --git a/scripts/make-link b/scripts/make-link new file mode 100755 index 0000000..79aa553 --- /dev/null +++ b/scripts/make-link @@ -0,0 +1 @@ +echo "$1"