diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 70cfd00..7a3c664 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -52,8 +52,12 @@
-{{ if and (not .IsHome) (isset .Params "cover") }}
-
+{{ if (isset .Params "cover") }}
+ {{ $pageCover := .Param "cover" }}
+ {{ with (.Resources.GetMatch (.Param "cover")) }}
+ {{ $pageCover = .RelPermalink }}
+ {{ end }}
+
{{ else }}
{{ if isset $.Site.Params "favicon" }}
@@ -61,8 +65,8 @@
{{ end }}
{{ end }}
-
-
+
+
{{ range .Params.categories }}
{{ end }}