add scripts directory

This commit is contained in:
gnat 2024-07-27 13:59:26 -07:00
parent 1b6122c20e
commit ed6f7b5ac3
2 changed files with 12 additions and 0 deletions

11
scripts/img-caption Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
path=$1
caption=$2
if [ -z "${caption}" ]; then
caption="$(basename "$path" | sed 's/-/ /g; s/\.[^.]*$//')"
fi
echo "<figure><img src='$path' alt='$caption'><figcaption>$caption</figcaption></figure>"

1
scripts/make-link Executable file
View File

@ -0,0 +1 @@
echo "<a href='$1'>$1</a>"