Skip to content

Commit

Permalink
Merge pull request #336 from Shinsina/adjust-current-year-arthur-ashe
Browse files Browse the repository at this point in the history
Adjust years to 2024 for current and 2023 for start of past, Arthur Ashe page
  • Loading branch information
jwade1327 authored Apr 23, 2024
2 parents 69c927c + fc31340 commit bf0680e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ $ const rootAlias = 'awards-honors/arthur-ashe';
<b> Extended Deadline: February 16 </b>
</div>
<br/>-->
</marko-web-block>
</marko-web-block>

<marko-web-block name="roster">
<div align="center">
Expand Down Expand Up @@ -78,7 +78,7 @@ $ const rootAlias = 'awards-honors/arthur-ashe';
name="website-section"
params={ alias, queryFragment: sectionWithChilderenFragment }
>
$ const year = 2023;
$ const year = 2024;
$ const [yearSection] = getAsArray(node, "children.edges").map(({ node }) => node).filter(({ name })=> parseInt(name) === year);
<if(yearSection)>
<div class="row">
Expand All @@ -102,7 +102,7 @@ $ const rootAlias = 'awards-honors/arthur-ashe';
name="website-section"
params={ alias: 'awards-honors/arthur-ashe', queryFragment: sectionWithChilderenFragment }
>
$ const year = 2022; //current/active year
$ const year = 2023; //current/active year
$ const children = getAsArray(node, "children.edges").map(({ node }) => node).filter(({ name })=> parseInt(name) <= year);
<marko-web-node-list>
<@nodes|{ nodes }| nodes=children modifiers=["flush-x"]>
Expand Down

0 comments on commit bf0680e

Please sign in to comment.