forked from nat/webbed-site
add scripts directory
This commit is contained in:
parent
1b6122c20e
commit
ed6f7b5ac3
11
scripts/img-caption
Executable file
11
scripts/img-caption
Executable 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
1
scripts/make-link
Executable file
@ -0,0 +1 @@
|
|||||||
|
echo "<a href='$1'>$1</a>"
|
Loading…
Reference in New Issue
Block a user