Refactor cover.html to use <figcaption> for image captions

This commit is contained in:
Aditya Telange 2024-11-09 21:04:36 +05:30
parent cb1059e04d
commit 51def434ed
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77

View File

@ -57,7 +57,7 @@
{{/* Display Caption */}} {{/* Display Caption */}}
{{- if $.IsSingle }} {{- if $.IsSingle }}
{{- with .Params.cover.caption }} {{- with .Params.cover.caption }}
<p>{{ . | markdownify }}</p> <figcaption>{{ . | markdownify }}</figcaption>
{{- end }} {{- end }}
{{- end }} {{- end }}
</figure> </figure>