diff --git a/clang-tools-extra/clang-doc/assets/head-template.mustache b/clang-tools-extra/clang-doc/assets/head-template.mustache
new file mode 100644
index 0000000000000..f0a8057a9c3dc
--- /dev/null
+++ b/clang-tools-extra/clang-doc/assets/head-template.mustache
@@ -0,0 +1,14 @@
+
+
+
{{Name}}
+ {{#Stylesheets}}
+
+ {{/Stylesheets}}
+ {{#Scripts}}
+
+ {{/Scripts}}
+ {{! Highlight.js dependency for syntax highlighting }}
+
+
+
+
diff --git a/clang-tools-extra/clang-doc/assets/namespace-template.mustache b/clang-tools-extra/clang-doc/assets/namespace-template.mustache
index 7fb66cadbb8e8..f386eb2e6a581 100644
--- a/clang-tools-extra/clang-doc/assets/namespace-template.mustache
+++ b/clang-tools-extra/clang-doc/assets/namespace-template.mustache
@@ -7,20 +7,7 @@
}}
-
-
-
{{NamespaceTitle}}
- {{#Stylesheets}}
-
- {{/Stylesheets}}
- {{#Scripts}}
-
- {{/Scripts}}
- {{! Highlight.js dependency for syntax highlighting }}
-
-
-
-
+{{>HeadPartial}}