diff --git a/layouts/404.html b/layouts/404.html
index fc2bf44ad7..4b8d5287b8 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -1,11 +1,7 @@
-
-
- {{ hugo.Generator -}}
{{- partial "meta.html" . }}
- {{ partial "favicon.html" . }}
{{- .Scratch.Add "title" "" }}
{{- if eq .Site.Data.titles .Title }}
{{- .Scratch.Set "title" (index .Site.Data.titles .Title).title }}
@@ -14,24 +10,9 @@
{{- end }}
{{ .Scratch.Get "title" }} {{ default "::" .Site.Params.titleSeparator }} {{ .Site.Title }}
- {{- $assetBusting := not .Site.Params.disableAssetsBusting }}
-
-
-
-
-
- {{- with .Site.Params.themeVariant }}
-
-
- {{- end }}
-
- {{- range .Site.Params.custom_css }}
-
- {{- end }}
+ {{- partial "favicon.html" . }}
+ {{- partial "stylesheet.html" . }}
+
+ {{- partial "favicon.html" . }}
+ {{- partial "stylesheet.html" . }}
{{- partial "custom-header.html" . }}
diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html
index b950b1894e..c616521e93 100644
--- a/layouts/partials/menu.html
+++ b/layouts/partials/menu.html
@@ -1,4 +1,6 @@
+ {{ "" | safeHTML }}
+ {{ "" | safeHTML }}
- {{ "" | safeHTML }}
- {{ "" | safeHTML }}
\ No newline at end of file
diff --git a/layouts/partials/stylesheet.html b/layouts/partials/stylesheet.html
new file mode 100644
index 0000000000..32de928521
--- /dev/null
+++ b/layouts/partials/stylesheet.html
@@ -0,0 +1,31 @@
+ {{- $assetBusting := not .Site.Params.disableAssetsBusting }}
+
+
+
+
+
+
+ {{- with .Site.Params.themeVariant }}
+
+
+ {{- end }}
+
+ {{- range .Site.Params.custom_css }}
+
+ {{- end }}
+
+
\ No newline at end of file