Fix links when showing index or date_index pages