diff --git a/templates/generic_page.html b/templates/generic_page.html
index c50fb5dd..539cfdd3 100644
--- a/templates/generic_page.html
+++ b/templates/generic_page.html
@@ -2,35 +2,8 @@
{% block head %}
-
- {% if config.url_favicon %}{% endif %}
- {{ board.url }} - {{ board.name }}
-
-
- {% if config.meta_keywords %}{% endif %}
- {% if config.default_stylesheet.1 != '' %}{% endif %}
-
- {% if not nojavascript %}
-
- {% if not config.additional_javascript_compile %}
- {% for javascript in config.additional_javascript %}{% endfor %}
- {% endif %}
- {% endif %}
- {% if config.recaptcha %}{% endif %}
+ {% include 'header.html' %}
+ {{ board.url }} - {{ board.name }}
{% endblock %}
diff --git a/templates/header.html b/templates/header.html
new file mode 100644
index 00000000..95e0bc09
--- /dev/null
+++ b/templates/header.html
@@ -0,0 +1,28 @@
+
+ {% if config.url_favicon %}{% endif %}
+
+
+ {% if config.meta_keywords %}{% endif %}
+ {% if config.default_stylesheet.1 != '' %}{% endif %}
+
+ {% if not nojavascript %}
+
+ {% if not config.additional_javascript_compile %}
+ {% for javascript in config.additional_javascript %}{% endfor %}
+ {% endif %}
+ {% endif %}
+ {% if config.recaptcha %}{% endif %}
diff --git a/templates/index.html b/templates/index.html
index d7910416..41c47af4 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1,35 +1,9 @@
+ {% include 'header.html' %}
-
- {% if config.url_favicon %}{% endif %}
{{ board.url }} - {{ board.name }}
-
- {% if config.meta_keywords %}{% endif %}
- {% if config.default_stylesheet.1 != '' %}{% endif %}
-
- {% if not nojavascript %}
-
- {% if not config.additional_javascript_compile %}
- {% for javascript in config.additional_javascript %}{% endfor %}
- {% endif %}
- {% endif %}
- {% if config.recaptcha %}{% endif %}
{{ boardlist.top }}
diff --git a/templates/page.html b/templates/page.html
index 8fbc49cd..457971af 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -1,14 +1,9 @@
+ {% include 'header.html' %}
-
- {% if config.url_favicon %}{% endif %}
{{ title }}
-
- {% if config.default_stylesheet.1 != '' %}{% endif %}
-
- {% if not nojavascript %}{% endif %}
{% if pm %}You have
an unread PM{% if pm.waiting > 0 %}, plus {{ pm.waiting }} more waiting{% endif %}.
{% endif %}