Skip to content

Commit 82b3b1a

Browse files
committed
feat: add platinum and silver sponsors
1 parent 40da2eb commit 82b3b1a

20 files changed

Lines changed: 90 additions & 5 deletions

bulbofile.js

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,29 @@ asset('source/news/**/*.md')
8282
.pipe(layout('news')) // Single news page
8383
]))
8484

85-
const postedAt = x => x.fm.postedAt ? x.fm.postedAt.valueOf() : 0
85+
/**
86+
* 求人の掲載日の unixtime を返す
87+
* @param {Vinyl} file
88+
* @return {number}
89+
*/
90+
const postedAt = file => file.fm.postedAt ? file.fm.postedAt.valueOf() : 0
91+
92+
// 各スポンサークラスの重み付け
93+
const classWeight = { platinum: 3, gold: 2, silver: 1 }
94+
95+
/**
96+
* 求人のクラスの重み付けを返す
97+
* @param {Vinyl} file
98+
* @return {number}
99+
*/
100+
const getClassWeight = file => classWeight[file.fm.class] || 0
101+
102+
/**
103+
* ジョブボードのソート関数
104+
* class (platinum/gold/silver) で並べた上で掲載順で並べる
105+
*/
106+
const jobboardSort = (x, y) => getClassWeight(y) - getClassWeight(x) || postedAt(y) - postedAt(x)
107+
86108
// Jobboard pages
87109
asset('source/jobs/**/*.md')
88110
.watch('source/**/*.{md,njk}')
@@ -92,7 +114,7 @@ asset('source/jobs/**/*.md')
92114
src
93115
.pipe(accumulate('jobboard.html', {
94116
debounce: true,
95-
sort: (x, y) => postedAt(y) - postedAt(x)
117+
sort: jobboardSort
96118
}))
97119
.pipe(layout('jobboard')), // Job index page
98120
src
5.43 KB
Loading
5.38 KB
Loading
7.46 KB
Loading
4.36 KB
Loading
3.73 KB
Loading
2.33 KB
Loading

source/jobs/.gitkeep

Whitespace-only changes.

source/jobs/2017/cyberagent.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
name: 株式会社サイバーエージェント
3+
url: https://www.cyberagent.co.jp/
4+
class: silver
5+
image: images/company-logo/cyberagent.png
6+
postedAt: 2017-09-22
7+
---
8+
9+
1998年設立。日本のインターネット業界黎明期より、業界を牽引する会社の一つとして、事業を拡大。 現在はインターネットテレビ「AbemaTV」、定額制音楽配信サービス「AWA」、国内最大のブログサービス「Ameba」などを運営するほか、インターネット広告代理店として国内売上高No.1、スマートフォンゲームにおいても国内有数の企業として、日本を代表するインターネット企業の1社となっている。

source/jobs/2017/cybozu.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
name: サイボウズ株式会社
3+
url: https://kintone.cybozu.com/jp/
4+
class: silver
5+
image: images/company-logo/cybozu.png
6+
postedAt: 2017-09-22
7+
---
8+
9+
サイボウズは業務アプリ開発プラットフォーム「kintone」をはじめとする、チーム・コラボレーションを支援するクラウドサービスを開発・提供しています。グローバルに拠点をもつ企業や公共団体などの大規模チームから、企業間プロジェクト、ボランティア、家族などの小規模チームまで幅広いお客様にご利用いただいています。

0 commit comments

Comments
 (0)