diff --git a/docs/theme/nature/layout.html b/docs/theme/nature/layout.html
--- a/docs/theme/nature/layout.html
+++ b/docs/theme/nature/layout.html
@@ -17,4 +17,4 @@
-{% endblock %}}
+{% endblock %}
diff --git a/kallithea/templates/compare/compare_diff.html b/kallithea/templates/compare/compare_diff.html
--- a/kallithea/templates/compare/compare_diff.html
+++ b/kallithea/templates/compare/compare_diff.html
@@ -82,8 +82,8 @@ ${self.repo_context_bar('changelog')}
%endif
+ %endif
- %endif
%if not c.compare_home:
## diff block