From eadb86cd6afc973c3cddb21ee2f599fb07fd34d3 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Sun, 26 May 2013 17:31:38 -0400 Subject: [PATCH] index template will now default to accepting input from stdin if do-index is undefined --- tpl/index | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tpl/index b/tpl/index index cb2212a..0746829 100755 --- a/tpl/index +++ b/tpl/index @@ -63,7 +63,14 @@ cat </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 <