diff --git a/index b/index index dc8c823..26dc3c6 100755 --- a/index +++ b/index @@ -297,9 +297,16 @@ then then (( maxtimestamp < prevtimestamp )) \ && maxtimestamp=$prevtimestamp - cat <<-EOHTML - $(date +%Y-%m-%d -d @$maxtimestamp) - EOHTML + if (( maxtimestamp )) + then + cat <<-EOHTML + $(date +%Y-%m-%d -d @$maxtimestamp) + EOHTML + else + cat <<-EOHTML + In more than 5 years + EOHTML + fi fi echo '' prevtimestamp=$maxtimestamp