Skip to content

Commit

Permalink
Merge pull request #29 from Sutrannu/cars
Browse files Browse the repository at this point in the history
Scrape races for user cars
  • Loading branch information
Sutrannu authored Feb 5, 2025
2 parents 5bda9c9 + 7ff1859 commit 3cd8773
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 18 deletions.
2 changes: 1 addition & 1 deletion content/race/2024-10-27.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ params:
callout: Sunday the 27th!
car_by: Belaraphon
tune_by: LunarSpork
car: 1992 Nissan Silvia Club K
car: 1992 Nissan Silvia '92 Club K
share_code: 568 682 181
---

Expand Down
2 changes: 1 addition & 1 deletion content/race/2024-11-03.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ params:
callout: Sunday the 3rd!
car_by: LunarSpork
tune_by: Sutrannu
car: 1959 Ford Anglia 105E
car: 1959 Ford Anglia '59 105E
share_code: 663 469 991
---

Expand Down
2 changes: 1 addition & 1 deletion content/race/2024-11-24.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ params:
callout: Sunday, Nov 24th!
car_by: RoutingWonk
tune_by: Belaraphon
car: 2012 Nissan GT-R Black
car: 2012 Nissan GT-R '12 Black
share_code: ...
---

Expand Down
2 changes: 1 addition & 1 deletion content/race/2024-12-01.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ params:
callout: F-1 December!
car_by: Belaraphon
tune_by: Baumbatz
car: 2020 Ford Stuper Doody F450
car: 2020 Ford SD F-450
share_code: "133 312 397"
---

Expand Down
2 changes: 1 addition & 1 deletion content/race/2024-12-31.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ params:
callout: STREAM-A-THON!
car_by: Hando
tune_by: Sammi
car: 2013 Renault Clio R.S. 200
car: 2013 Renault Clio '93 R.S. 200
share_code: 686 462 498
---

Expand Down
2 changes: 1 addition & 1 deletion content/race/2025-01-19.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ params:
callout: Nürburgring Skills
car_by: Rasj001
tune_by: WScottis1
car: 2017 Alfa Romeo Giulia Quadrifoglio
car: Alfa Giulia '17 Quadrifoglio
share_code: 120 438 118
tune_name: A Turns 2.0
class:
Expand Down
2 changes: 1 addition & 1 deletion content/race/2025-01-26.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ params:
callout: Señor Money Bags
car_by: WScottis1
tune_by: LoeyD614
car: 2016 Lamborghini Centenario LP 770-4
car: 2016 Lambo Centenario LP 770-4
share_code: 790 510 006
tune_name:
class: S2 987
Expand Down
2 changes: 1 addition & 1 deletion content/race/2025-02-02.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ params:
car_by: LoeyD614
tune_by: Sutrannu
car: 1965 Peel Trident
share_code: 115 169 449
share_code: 538 071 978
tune_name: Orange
class: B 699
---
Expand Down
26 changes: 16 additions & 10 deletions layouts/shortcodes/cars.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<ul style="list-style-type: none">
{{ range $.Site.Data.cars }}
<p>
<span style="font-family: Atma, cursive; font-weight: 400; font-size: 1.5em" id="{{ replace .name " " "_" | lower }}">
<li>
<span style="font-size: 1em" id="{{ replace .name " " "_" | lower }}">
<i class="fas fa-exclamation-circle"></i>
{{ .name }}</span>
{{ if isset . "year" }}
Expand All @@ -9,11 +10,16 @@
{{ .year }}
</span>
{{ end }}
{{ if isset . "lastUsed" }}
<a href="../race/{{ .lastUsed }}">
<i class="fa fa-chart-bar"></i>
{{ .lastUsed }}
</a>
{{ end }}
</p>
{{ end }}
{{ $car := . }}
{{ range where $.Site.RegularPages "Section" "race" }}
{{ if strings.Contains .Params.car $car.name }}
Last Used,
<a href="../race/{{ .File.BaseFileName }}">
<i class="fa fa-chart-bar"></i>
{{ .File.BaseFileName }}
</a>
{{ end }}
{{ end }}
</li>
{{ end }}
</ul>

0 comments on commit 3cd8773

Please sign in to comment.