Skip to content

Commit

Permalink
power year in review locations from data file
Browse files Browse the repository at this point in the history
this still isn't being updated regularly, but will make that easier in
the future, since now it will just involve updating the data file.
  • Loading branch information
willnorris committed Oct 28, 2021
1 parent e6fa43f commit 73bddd4
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 39 deletions.
29 changes: 29 additions & 0 deletions data/locations.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
- name: United States
flag: united_states_1f1fa-1f1f8.svg

- name: Greece
flag: greece_1f1ec-1f1f7.svg

- name: Germany
flag: germany_1f1e9-1f1ea.svg

- name: United Kingdom
flag: united_kingdom_1f1ec-1f1e7.svg

- name: Singapore
flag: singapore_1f1f8-1f1ec.svg

- name: China
flag: china_1f1e8-1f1f3.svg

- name: Belgium
flag: belgium_1f1e7-1f1ea.svg

- name: Austria
flag: austria_1f1e6-1f1f9.svg

- name: Peru
flag: peru_1f1f5-1f1ea.svg

- name: Australia
flag: australia_1f1e6-1f1fa.svg
44 changes: 5 additions & 39 deletions layouts/_default/year-in-review.html
Original file line number Diff line number Diff line change
Expand Up @@ -176,46 +176,12 @@ <h1 class="large-title">Locations</h1>
</div>

<div class="locations">
<div class="location-item">
<img src="/assets/year-in-review/flags/united_states_1f1fa-1f1f8.svg" alt="United States flag">
United States
</div>
<div class="location-item">
<img src="/assets/year-in-review/flags/greece_1f1ec-1f1f7.svg" alt="Greece flag">
Greece
</div>
<div class="location-item">
<img src="/assets/year-in-review/flags/germany_1f1e9-1f1ea.svg" alt="Germany flag">
Germany
</div>
<div class="location-item">
<img src="/assets/year-in-review/flags/united_kingdom_1f1ec-1f1e7.svg" alt="United Kingdom flag">
United Kingdom
</div>
<div class="location-item">
<img src="/assets/year-in-review/flags/singapore_1f1f8-1f1ec.svg" alt="Singapore flag">
Singapore
</div>
<div class="location-item">
<img src="/assets/year-in-review/flags/china_1f1e8-1f1f3.svg" alt="China flag">
China
</div>
<div class="location-item">
<img src="/assets/year-in-review/flags/belgium_1f1e7-1f1ea.svg" alt="Belgium flag">
Belgium
</div>
<div class="location-item">
<img src="/assets/year-in-review/flags/austria_1f1e6-1f1f9.svg" alt="Austria flag">
Austria
</div>
<div class="location-item">
<img src="/assets/year-in-review/flags/peru_1f1f5-1f1ea.svg" alt="Peru flag">
Peru
{{- range $.Site.Data.locations -}}
<div class="location-item">
<img src="/assets/year-in-review/flags/{{ .flag }}" alt="{{ .name }} flag">
{{ .name }}
</div>
<div class="location-item">
<img src="/assets/year-in-review/flags/australia_1f1e6-1f1fa.svg" alt="Australia flag">
Australia
</div>
{{- end -}}
<p class="locations-disclaimer">*Top 10 locations ranked by commits, accurate as of Aug 2019</p>
</div>
</div>
Expand Down

0 comments on commit 73bddd4

Please sign in to comment.