Skip to content

Commit

Permalink
Merge pull request #44 from jwade1327/rsna-preview
Browse files Browse the repository at this point in the history
Adjust rsna-preview layout to use section name ‘RSNA Preview’
  • Loading branch information
Shinsina authored Nov 8, 2023
2 parents a28fb09 + 9d93e9a commit e0db615
Showing 1 changed file with 67 additions and 1 deletion.
68 changes: 67 additions & 1 deletion tenants/all/templates/am-rsna-preview.marko
Original file line number Diff line number Diff line change
@@ -1 +1,67 @@
<common-rsna-layout data=data />
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";

$ const { website, config, req } = out.global;
$ const { newsletter, date } = data;

$ const emailX = config.get("emailX");
$ const nativeX = config.getAsObject("nativeX");

<marko-newsletter-root
title=newsletter.name
description=newsletter.description
date=date
>
<@head>
<common-head-block />
</@head>
<@body style="padding:0; margin:0;font-family: 'Roboto', Arial, sans-serif; -webkit-text-size-adjust:100%;">
<common-body-wrapper-block newsletter=newsletter date=date>
<@body>

<!-- Content list block -->
<common-content-list-block
date=date
section-name="RSNA Preview"
newsletter=newsletter
with-image=true
image-position="right"
with-header=true
continue-reading=true
limit=1
/>

<!-- Content list block -->
<common-content-list-block
date=date
section-name="Main"
newsletter=newsletter
with-image=false
with-section=true
limit=1
/>

<!-- Ad Slot 1 -->
<common-ad-wrapper-block
newsletter=newsletter
promotion-component="emailx-block"
ad-unit=emailX.getAdUnit({ name: 'ad-slot-1', alias: newsletter.alias })
date=date
/>

<!-- Content list block -->
<common-content-list-block
date=date
section-name="Main"
newsletter=newsletter
with-image=false
with-section=true
limit=38
skip=1
/>

</@body>
</common-body-wrapper-block>
</@body>
</marko-newsletter-root>

0 comments on commit e0db615

Please sign in to comment.