index template will now default to accepting input from stdin if do-index is undefined
parent
b60623d005
commit
eadb86cd6a
|
@ -63,7 +63,14 @@ cat <<EOH
|
||||||
EOH
|
EOH
|
||||||
|
|
||||||
# generate index and populate statistical vars
|
# 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
|
cat <<EOF
|
||||||
<footer>
|
<footer>
|
||||||
|
|
Loading…
Reference in New Issue