1
0
Fork 0

index template will now default to accepting input from stdin if do-index is undefined

tpl
Mike Gerwitz 2013-05-26 17:31:38 -04:00
parent b60623d005
commit eadb86cd6a
1 changed files with 8 additions and 1 deletions

View File

@ -63,7 +63,14 @@ cat <<EOH
EOH
# generate index and populate statistical vars
do-index output-heading output-line close-heading
type do-index &>/dev/null \
&& do-index output-heading output-line close-heading \
|| {
# no do-index is defined; default to accepting input from stdin
yearrange="$( date +%Y )"
lastts="$( date +%s )"
cat
}
cat <<EOF
<footer>