Skip to content

Commit

Permalink
Merge pull request #1081 from ember-learn/embroider-initiative-sponsor
Browse files Browse the repository at this point in the history
add Teamtailor to the Embroider Initiative sponsors
  • Loading branch information
mansona committed Feb 1, 2024
2 parents befc9f4 + 76aff37 commit 0506ef5
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 3 deletions.
1 change: 1 addition & 0 deletions app/models/initiative-sponsor.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ export default class SponsorModel extends Model {
@attr name;
@attr url;
@attr('number') tier;
@attr('number') order;
}
2 changes: 1 addition & 1 deletion app/templates/sponsors.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

<ul class="unstyled grid sm:grid-2 lg:grid-3">
{{#each
(sort-by "tier:desc"
(sort-by "tier:desc" "order:asc"
(reject-by "tier" 1 @model.initiativeSponsors)
)
as |sponsor|
Expand Down
1 change: 1 addition & 0 deletions data/initiative-sponsor/hashi-corp.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ name: HashiCorp
url: https://www.hashicorp.com/
image: hashicorp.png
tier: 2
order: 1
---
3 changes: 2 additions & 1 deletion data/initiative-sponsor/lighthouse.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ name: Lighthouse
url: https://www.mylighthouse.com/
image: lighthouse.png
tier: 2
---
order: 1
---
7 changes: 7 additions & 0 deletions data/initiative-sponsor/teamtailor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
name: Teamtailor
url: https://www.teamtailor.com/
image: teamtailor.svg
tier: 2
order: 2
---
1 change: 1 addition & 0 deletions data/initiative-sponsor/xbe.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ name: XBE
url: https://www.x-b-e.com/
image: xbe.svg
tier: 2
order: 1
---
2 changes: 1 addition & 1 deletion lib/content-data-generator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const sponsorTree = new StaticSiteJson(`data/sponsor`, {
const initiativeTree = new StaticSiteJson(`data/initiative-sponsor`, {
type: 'initiativeSponsor',
contentFolder: `data/initiative-sponsors`,
attributes: ['name', 'url', 'image', 'tier'],
attributes: ['name', 'url', 'image', 'tier', 'order'],
contentTypes: ['content'],
collate: true,
});
Expand Down
10 changes: 10 additions & 0 deletions public/images/users/teamtailor.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0506ef5

Please sign in to comment.