diff --git a/layouts/partials/cover.html b/layouts/partials/cover.html
index e7e2df4f..6c7d1ae3 100644
--- a/layouts/partials/cover.html
+++ b/layouts/partials/cover.html
@@ -2,6 +2,7 @@
{{- if (and .Params.cover.image (not $.isHidden)) }}
{{- $alt := (.Params.cover.alt | default .Params.cover.caption | plainify) }}