mirror of https://github.com/nealey/woozle.org.git
16 lines
344 B
Plaintext
16 lines
344 B
Plaintext
|
#! /bin/sh -e
|
||
|
|
||
|
while IFS=: read field value; do
|
||
|
case "$field" in
|
||
|
"")
|
||
|
break
|
||
|
;;
|
||
|
Title)
|
||
|
# echo strips leading and trailing whitespace
|
||
|
title=$(echo $value)
|
||
|
;;
|
||
|
esac
|
||
|
done
|
||
|
|
||
|
m4 -Dimage='<a href="$1.jpg"><img src="$1-sm.jpg"></a>' | markdown | m4 -DTITLE="$title" $1 -
|