diff --git a/src/templates/event.js b/src/templates/event.js
index 3f21390..d573309 100644
--- a/src/templates/event.js
+++ b/src/templates/event.js
@@ -116,9 +116,17 @@ export const EventTemplate = ({
{hasFeaturedMedia && (
-
-
![]()
-
+ <>
+
+
![]()
+
+ {/* {featuredMedia.caption && (
+
+ )} */}
+ >
)}
@@ -150,7 +158,9 @@ export const EventTemplate = ({
EventTemplate.propTypes = {
content: PropTypes.node.isRequired,
title: PropTypes.string.isRequired,
- featuredMedia: PropTypes.shape({}),
+ featuredMedia: PropTypes.shape({
+ caption: PropTypes.string,
+ }),
startTime: PropTypes.string.isRequired,
endTime: PropTypes.string,
venue: PropTypes.shape({
@@ -225,6 +235,7 @@ export const eventQuery = graphql`
price_member
price_regular
featured_media {
+ caption
localFile {
...FluidImage
}
diff --git a/src/templates/post.js b/src/templates/post.js
index b25a576..8597c81 100644
--- a/src/templates/post.js
+++ b/src/templates/post.js
@@ -39,9 +39,18 @@ export const BlogPostTemplate = ({
{hasFeaturedMedia && (
-
-
![]()
-
+ <>
+
+
![]()
+ {featuredMedia.caption && (
+
+ )}
+
+
+ >
)}