Fix reStructuredText headers in different templates