Skip to content

Commit fa3219f

Browse files
committed
feat: add jobboard 2018
1 parent 27f7a7c commit fa3219f

33 files changed

Lines changed: 147 additions & 3 deletions

bulbofile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ asset('source/news/**/*.md')
9191
const postedAt = file => file.fm.postedAt ? file.fm.postedAt.valueOf() : 0
9292

9393
// 各スポンサークラスの重み付け
94-
const classWeight = { platinum: 3, gold: 2, silver: 1 }
94+
const classWeight = { platinum: 4, gold: 3, silver: 2, bronze: 1, venue: 0 }
9595

9696
/**
9797
* 求人のクラスの重み付けを返す
@@ -102,12 +102,12 @@ const getClassWeight = file => classWeight[file.fm.class] || 0
102102

103103
/**
104104
* ジョブボードのソート関数
105-
* class (platinum/gold/silver) で並べた上で掲載順で並べる
105+
* class (platinum/gold/silver/bronze/venue) で並べた上で掲載順で並べる
106106
*/
107107
const jobboardSort = (x, y) => getClassWeight(y) - getClassWeight(x) || postedAt(x) - postedAt(y)
108108

109109
// Jobboard pages
110-
asset('source/jobs/**/*.md')
110+
asset('source/jobs/2018/*.md')
111111
.watch('source/**/*.{md,njk}')
112112
.pipe(frontMatter({property: 'fm'}))
113113
.pipe(markdown())
6.4 KB
Loading
4.07 KB
Loading
4.05 KB
Loading
3.53 KB
Loading
3 KB
Loading
4.23 KB
Loading
2.82 KB
Loading
7.47 KB
Loading
3.36 KB
Loading

0 commit comments

Comments
 (0)