Speed up toc and fixed /tags/#ref /categories/#ref links