Skip to content

Commit 5a9a762

Browse files
authored
add banner for Grace Hopper Celebration Open Source Day (#4759)
1 parent 62d2826 commit 5a9a762

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

layouts/index.hbs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@
1919
{{/if}}
2020

2121
{{#if ( betweenDate site.banners.index.startDate site.banners.index.endDate ) }}
22+
{{#if site.banners.index.text}}
2223
<p class="home-version home-version-banner">
2324
<a href="{{ site.banners.index.link }}">{{ site.banners.index.text }}</a>
2425
</p>
26+
{{ else }}
27+
<a href="{{ site.banners.index.link }}">{{{ site.banners.index.html }}}</a>
28+
{{/if}}
2529
{{/if}}
2630

2731
<h2 id="home-downloadhead" data-dl-local="{{ labels.download-for }}">{{ labels.download }}</h2>

locale/en/site.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,11 @@
159159
},
160160
"banners": {
161161
"index": {
162-
"startDate": "2022-06-27T16:00:00.000Z",
163-
"endDate": "2022-07-13T16:00:00.000Z",
164-
"text": "New security releases now available for Node.js 14, 16, and 18 release lines",
165-
"link": "https://nodejs.org/en/blog/vulnerability/july-2022-security-releases/"
162+
"startDate": "2022-07-29T16:00:00.000Z",
163+
"endDate": "2022-08-11T16:00:00.000Z",
164+
"text": null,
165+
"html": "<img alt='Grace Hopper Celebration' src='/static/images/ghc-banner.png' />",
166+
"link": "https://anitab-org.github.io/open-source-day/open-source-day/"
166167
},
167168
"blacklivesmatter": {
168169
"visible": false,

static/images/ghc-banner.png

287 KB
Loading

0 commit comments

Comments
 (0)