adding permalinks to headings #9
treating category names when there are no folders