From a41850105b22bea7031abded6320f8f05cf20184 Mon Sep 17 00:00:00 2001 From: Brandon Krigbaum Date: Fri, 28 Apr 2023 12:33:23 -0500 Subject: [PATCH] Pass through date format --- .../components/nodes/content.marko | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/marko-web-theme-monorail/components/nodes/content.marko b/packages/marko-web-theme-monorail/components/nodes/content.marko index 3eb68a79f..31fefb251 100644 --- a/packages/marko-web-theme-monorail/components/nodes/content.marko +++ b/packages/marko-web-theme-monorail/components/nodes/content.marko @@ -14,6 +14,7 @@ $ const withDates = defaultValue(input.withDates, true); $ const withPrimarySectionModifier = defaultValue(input.withPrimarySectionModifier, true); $ const displayButton = defaultValue(input.displayButton, false); $ const callToAction = defaultValue(input.callToAction, "View Profile"); +$ const dateFormat = defaultValue(input.dateFormat, "MMMM D, YYYY"); $ const isWebinar = content.type === "webinar"; $ const isPromotion = content.type === "promotion"; @@ -89,8 +90,8 @@ $ const withSponsored = primarySection && primarySection.name === 'Sponsored' && >
- - + +
@@ -134,7 +135,7 @@ $ const withSponsored = primarySection && primarySection.name === 'Sponsored' && <@text|{ blockName }| show=(Boolean(withDates && !isEvent))> - + <@text show=displayButton>