Skip to content

Commit

Permalink
Add 'manufacturer' field
Browse files Browse the repository at this point in the history
  • Loading branch information
Artaud committed Jan 18, 2019
1 parent 11eab8c commit 5288d4c
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 1 deletion.
2 changes: 2 additions & 0 deletions _vendors/htc.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
name: HTC
layout: vendor
manufacturer:
- htc
position: 8
award: 1
redirect_from: /vendors/htc.html
Expand Down
2 changes: 2 additions & 0 deletions _vendors/huawei.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
name: Huawei
layout: vendor
manufacturer:
- huawei
redirect_from: /vendors/huawei.html
award: 3
position: 4
Expand Down
2 changes: 2 additions & 0 deletions _vendors/meizu.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
name: Meizu
layout: vendor
manufacturer:
- meizu
award: 3
position: 5
redirect_from: /vendors/meizu.html
Expand Down
7 changes: 6 additions & 1 deletion _vendors/nokia.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
---
name: Nokia
manufacturer:
- nokia
- hmd global
layout: vendor
redirect_from: /vendors/nokia.html
redirect_from:
- /vendors/nokia.html
- /hmd%20global
award: 5
position: 1
explanation: "
Expand Down
2 changes: 2 additions & 0 deletions _vendors/oneplus.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
name: OnePlus
manufacturer:
- oneplus
layout: vendor
award: 4
position: 2
Expand Down
2 changes: 2 additions & 0 deletions _vendors/samsung.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
name: Samsung
manufacturer:
- samsung
layout: vendor
award: 2
position: 7
Expand Down
2 changes: 2 additions & 0 deletions _vendors/sony.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
name: Sony
manufacturer:
- sony
layout: vendor
award: 3
position: 6
Expand Down
2 changes: 2 additions & 0 deletions _vendors/stock_android.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
name: Google (Pixel, Nexus)
manufacturer:
- google
layout: vendor
award: 1
position: 9
Expand Down
2 changes: 2 additions & 0 deletions _vendors/xiaomi.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
name: Xiaomi
manufacturer:
- xiaomi
layout: vendor
position: 3
award: 3
Expand Down
1 change: 1 addition & 0 deletions api/v1/output.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ limit: 100
{% for vendor in sorted_vendors limit: page.limit %}
{
"name": {{ vendor.name | jsonify }},
"manufacturer": [{% for v in vendor.manufacturer %}"{{ v }}"{% unless forloop.last %},{% endunless %}{% endfor %}],
"url": {{ vendor.url | jsonify }},
"award": {{ vendor.award | jsonify }},
"position": {{ vendor.position | jsonify }},
Expand Down

0 comments on commit 5288d4c

Please sign in to comment.