diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 2ea5e89e..f92ea451 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -24,10 +24,10 @@
{{ partial "icon.html" "external" }}
{{ .Name }}
- {{ else if (isset .Page.Params "icon") }}
+ {{ else if (isset .Params "icon") }}
{{ .Name }}
- {{ partial "icon.html" .Page.Params.icon }}
+ {{ partial "icon.html" .Params.icon }}
{{ else }}
{{ .Name }}