diff --git a/tenants/all/templates/drb-lfte.marko b/tenants/all/templates/drb-lfte.marko index 2f5c759..a189568 100644 --- a/tenants/all/templates/drb-lfte.marko +++ b/tenants/all/templates/drb-lfte.marko @@ -1 +1,129 @@ - +import { get } from "@parameter1/base-cms-object-path"; +import { parseBooleanHeader } from "@parameter1/base-cms-utils"; +import queryFragment from "@science-medicine-group/package-common/graphql/fragments/content-list"; +import defaultValue from "@parameter1/base-cms-marko-core/utils/default-value"; + +$ const { website, config, req } = out.global; +$ const { newsletter, date } = data; + +$ const emailX = config.get("emailX"); +$ const nativeX = config.getAsObject("nativeX"); +$ const { id, alias, name, pageNode } = input; + +$ const newsletterConfig = config.get(newsletter.alias); +$ const caseBlock = get(newsletterConfig, "caseBlock"); +$ const ctaLinkStyle = defaultValue(newsletterConfig.ctaLinkStyle, undefined); + +$ const resolvedToNodesConverter = ({ resolved }) => (resolved.map((node) => ({ + id: node.ID, + type: 'Case', + shortName: node.name, + teaser: node.description, + siteContext: { url: `https://my.drbicuspid.com/cases/${node.url}` }, + primaryImage: { src: node.imagepath } + }))); + + + <@head> + + + <@body style="padding:0; margin:0;font-family: 'Roboto', Arial, sans-serif; -webkit-text-size-adjust:100%;"> + + <@body> + + + + + + + + + + + + + + + + + + + + + + +
+

+ Case of the Week +

+
+ + + + + + + + + + +
+ +