add docs link to template
force sections to only render if properly nested