fix category indexes

adapted post text to overcome bug in truncatewords