{{ .Title }}
@@ -75,4 +67,4 @@
{{- end }}
{{end}}{{/* end profileMode */}}
-{{- end }}{{- /* end main */ -}}
\ No newline at end of file
+{{- end }}{{- /* end main */ -}}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index ec8038e9..20c3bc93 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -26,16 +26,7 @@
{{- end}}
- {{- if .Params.cover.image }}
-
- {{- end }}
+ {{- partial "cover.html" (dict "cxt" . "IsHome" false) }}
{{- if .Params.ShowToc }}
@@ -68,4 +59,4 @@
{{- end }}
-{{- end }}{{/* end main */}}
\ No newline at end of file
+{{- end }}{{/* end main */}}
diff --git a/layouts/partials/cover.html b/layouts/partials/cover.html
new file mode 100644
index 00000000..7be43ea6
--- /dev/null
+++ b/layouts/partials/cover.html
@@ -0,0 +1,32 @@
+{{- with .cxt}} {{/* Apply proper context from dict */}}
+{{- if .Params.cover.image }}
+{{- $alt := (.Params.cover.alt | default .Params.cover.caption | plainify) }}
+
+{{- end }}{{/* End image */}}
+{{- end -}}{{/* End context */}}