amending doc.html - attempting to clear {% endif %} problem - found duplicate line and deleted it.