diff --git a/404.html b/404.html index c472b4e..b0956c0 100644 --- a/404.html +++ b/404.html @@ -20,5 +20,24 @@

404

Page not found :(

-

The requested page could not be found.

+

你可能点开了GSF不感兴趣的别队比赛

+

░░░░░░░░░▄░░░░░░░░░░░░░░▄░░░░ + ░░░░░░░░▌▒█░░░░░░░░░░░▄▀▒▌░░░ + ░░░░░░░░▌▒▒█░░░░░░░░▄▀▒▒▒▐░░░ + ░░░░░░░▐▄▀▒▒▀▀▀▀▄▄▄▀▒▒▒▒▒▐░░░ + ░░░░░▄▄▀▒░▒▒▒▒▒▒▒▒▒█▒▒▄█▒▐░░░ + ░░░▄▀▒▒▒░░░▒▒▒░░░▒▒▒▀██▀▒▌░░░ + ░░▐▒▒▒▄▄▒▒▒▒░░░▒▒▒▒▒▒▒▀▄▒▒▌░░ + ░░▌░░▌█▀▒▒▒▒▒▄▀█▄▒▒▒▒▒▒▒█▒▐░░ + ░▐░░░▒▒▒▒▒▒▒▒▌██▀▒▒░░░▒▒▒▀▄▌░ + ░▌░▒▄██▄▒▒▒▒▒▒▒▒▒░░░░░░▒▒▒▒▌░ + ▐▒▀▐▄█▄█▌▄░▀▒▒░░░░░░░░░░▒▒▒▐░ + ▐▒▒▐▀▐▀▒░▄▄▒▄▒▒▒▒▒▒░▒░▒░▒▒▒▒▌ + ▐▒▒▒▀▀▄▄▒▒▒▄▒▒▒▒▒▒▒▒░▒░▒░▒▒▐░ + ░▌▒▒▒▒▒▒▀▀▀▒▒▒▒▒▒░▒░▒░▒░▒▒▒▌░ + ░▐▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒░▒░▒▒▄▒▒▐░░ + ░░▀▄▒▒▒▒▒▒▒▒▒▒▒░▒░▒░▒▄▒▒▒▒▌░░ + ░░░░▀▄▒▒▒▒▒▒▒▒▒▒▄▄▄▀▒▒▒▒▄▀░░░ + ░░░░░░▀▄▄▄▄▄▄▀▀▀▒▒▒▒▒▄▄▀░░░░░ + ░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▀▀░░░░░░░░

diff --git a/_data/seasons/22q2/config.json b/_data/seasons/22q2/config.json index 0be554a..f9aa54d 100644 --- a/_data/seasons/22q2/config.json +++ b/_data/seasons/22q2/config.json @@ -5,6 +5,7 @@ "link": "https://nccsf.org", "rules": "*11人制\n*分为小组排位赛和淘汰赛两个阶段\n*16支球队抽签分为四组,进行两轮排位赛。小组内第一轮对阵由抽签决定,第二轮由第一轮的两场比赛胜者相互对阵,两场比赛败者相互对阵。\n*排位赛积分表现为第一轮胜者得2分,第二轮胜者得1分,败者不得分\n*两轮排位赛后,每个小组第一名争夺冠军杯,第二名争夺优胜者杯,第三名争夺矽谷杯,第四名争夺勇者杯\n*淘汰赛阶段每个奖杯分区四支队伍进行单循环淘汰赛,决定奖杯归属", "winner": "CalBlue", + "interested_teams": ["GSF"], "regions": { "N1": [ "OverPower", diff --git a/_data/seasons/22q3-1/config.json b/_data/seasons/22q3-1/config.json index 57469db..efeb279 100644 --- a/_data/seasons/22q3-1/config.json +++ b/_data/seasons/22q3-1/config.json @@ -18,5 +18,6 @@ ] }, "winner": "GSF", + "interested_teams": ["GSF"], "rules": "*7人制\n*最终分为两组分别排名:校友组和社区组\n*相互对阵由抽签决定,不限分组" } \ No newline at end of file diff --git a/_data/seasons/22q4/config.json b/_data/seasons/22q4/config.json index 28939cd..62771e3 100644 --- a/_data/seasons/22q4/config.json +++ b/_data/seasons/22q4/config.json @@ -4,5 +4,6 @@ "type": "league_table", "link": "https://nccsf.org", "winner": "SVTigers", + "interested_teams": ["GSF-U", "GSF-C"], "rules": "*9人制\n*单场比赛净胜球最多计算3个,多出的胜方进球不计入赛果\n*弃权额外扣3分\n*本赛季结束排名决定下赛季分档,前八进入第一档,第九名及之后进入第二档" } \ No newline at end of file diff --git a/_data/seasons/23q1/config.json b/_data/seasons/23q1/config.json index f147a7c..31f4ecf 100644 --- a/_data/seasons/23q1/config.json +++ b/_data/seasons/23q1/config.json @@ -4,6 +4,7 @@ "type": "league_table + region", "link": "https://nccsf.org", "rules": "*11人制\n*十轮循环赛+两轮区间内排位赛", + "interested_teams": ["GSF-U", "GSF-L"], "regions": { "D1": [ "CalBlue", diff --git a/_plugins/league_generator.rb b/_plugins/league_generator.rb index 9ed7901..84de3f9 100644 --- a/_plugins/league_generator.rb +++ b/_plugins/league_generator.rb @@ -827,7 +827,11 @@ def generate(site) end # ------------------------------------------------------------- - + generate_interested_teams_gamepage_only = false + if config['interested_teams'] != nil + interested_teams = Set.new(config['interested_teams']) + generate_interested_teams_gamepage_only = true + end team_hash = season[1]['teams'] team_hash.each do |key, team| @@ -955,7 +959,16 @@ def generate(site) end end - site.pages << GamePage.new(site, site.source, File.join('seasons', season[0], 'games', key), key, game, home_team, away_team) + generate_gamepage = true + if generate_interested_teams_gamepage_only + if !(interested_teams.member?(game['home']['key']) || interested_teams.member?(game['away']['key'])) + generate_gamepage = false + end + end + + if generate_gamepage + site.pages << GamePage.new(site, site.source, File.join('seasons', season[0], 'games', key), key, game, home_team, away_team) + end end