Skip to content

Commit

Permalink
Merge pull request #33 from B77Mills/AddDisplayLimit
Browse files Browse the repository at this point in the history
Add ability to set display limit & set amInsider to 16
  • Loading branch information
jwade1327 authored Sep 22, 2023
2 parents 8938063 + 96c2076 commit a0591dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/common/components/layouts/insider.marko
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import queryFragment from "@science-medicine-group/package-common/graphql/fragme

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

$ const emailX = config.get("emailX");
$ const nativeX = config.getAsObject("nativeX");
Expand Down Expand Up @@ -85,7 +86,7 @@ $ const nativeX = config.getAsObject("nativeX");
newsletter=newsletter
with-image=false
with-section=true
limit=5
limit=(displayLimit - 5)
skip=4
/>

Expand Down
2 changes: 1 addition & 1 deletion tenants/all/templates/am-community-insider.marko
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<common-insider-layout data=data />
<common-insider-layout data=data display-limit=16/>

0 comments on commit a0591dd

Please sign in to comment.