remove html suffix from permalink