diff --git a/frappe/templates/base.html b/frappe/templates/base.html
index a2c171a651..0b82b3dac2 100644
--- a/frappe/templates/base.html
+++ b/frappe/templates/base.html
@@ -10,7 +10,7 @@
{% include "templates/includes/meta_block.html" %}
{% endblock %}
-
{% block title %} {{ title | striptags }} {% endblock %}
+ {% block title %}{{ title | striptags }}{% endblock %}
{% block favicon %}
About Us{% endblock %}
{% block page_sidebar %}
{% include "templates/includes/web_sidebar.html" %}
{% endblock %}
diff --git a/frappe/www/contact.html b/frappe/www/contact.html
index 5433ccf253..91f14985b2 100644
--- a/frappe/www/contact.html
+++ b/frappe/www/contact.html
@@ -1,6 +1,7 @@
{% extends "templates/web.html" %}
-{% block title %}{{ heading or "Contact Us"}}{% endblock %}
+{% set title = heading or "Contact Us" %}
+{% block header %}{{ heading or "Contact Us" }}
{% endblock %}
{% block page_content %}