Merge pull request #117 from jwcooper/downloads-display-flag

Add flag to remove boards from downloads display
This commit is contained in:
Scott Shawcroft 2019-04-08 09:26:41 -07:00 committed by GitHub
commit 7cea3804da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 138 additions and 0 deletions

22
_board/cp32-m4.md Normal file
View file

@ -0,0 +1,22 @@
---
layout: download
board_id: "cp32-m4"
title: "cp32-m4 Download"
name: "cp32-m4"
manufacturer: "unknown"
board_url: ""
board_image: "/assets/images/boards/unknown.jpg"
downloads_display: false
features:
---
This board hasn't been fully documented yet. Please make a pull request adding more info to this file.
The description should be written to inform a CircuitPython user what makes the board unique and link to relevant info about it.
## Purchase
Add any links to purchase the board
## Contribute
Have some info to add for this board? Edit the source for this page [here](https://github.com/adafruit/circuitpython-org/edit/master/_board/{{ page.board_id }}.md).

22
_board/datalore_ip_m4.md Normal file
View file

@ -0,0 +1,22 @@
---
layout: download
board_id: "datalore_ip_m4"
title: "datalore_ip_m4 Download"
name: "datalore_ip_m4"
manufacturer: "unknown"
board_url: ""
board_image: "/assets/images/boards/unknown.jpg"
downloads_display: false
features:
---
This board hasn't been fully documented yet. Please make a pull request adding more info to this file.
The description should be written to inform a CircuitPython user what makes the board unique and link to relevant info about it.
## Purchase
Add any links to purchase the board
## Contribute
Have some info to add for this board? Edit the source for this page [here](https://github.com/adafruit/circuitpython-org/edit/master/_board/{{ page.board_id }}.md).

View file

@ -0,0 +1,22 @@
---
layout: download
board_id: "feather_radiofruit_zigbee"
title: "feather_radiofruit_zigbee Download"
name: "feather_radiofruit_zigbee"
manufacturer: "Adafruit"
board_url: ""
board_image: "/assets/images/boards/unknown.jpg"
downloads_display: false
features:
---
This board hasn't been fully documented yet. Please make a pull request adding more info to this file.
The description should be written to inform a CircuitPython user what makes the board unique and link to relevant info about it.
## Purchase
Add any links to purchase the board
## Contribute
Have some info to add for this board? Edit the source for this page [here](https://github.com/adafruit/circuitpython-org/edit/master/_board/{{ page.board_id }}.md).

22
_board/gb_m4.md Normal file
View file

@ -0,0 +1,22 @@
---
layout: download
board_id: "gb_m4"
title: "gb_m4 Download"
name: "gb_m4"
manufacturer: "unknown"
board_url: ""
board_image: "/assets/images/boards/unknown.jpg"
downloads_display: false
features:
---
This board hasn't been fully documented yet. Please make a pull request adding more info to this file.
The description should be written to inform a CircuitPython user what makes the board unique and link to relevant info about it.
## Purchase
Add any links to purchase the board
## Contribute
Have some info to add for this board? Edit the source for this page [here](https://github.com/adafruit/circuitpython-org/edit/master/_board/{{ page.board_id }}.md).

22
_board/pca10040.md Normal file
View file

@ -0,0 +1,22 @@
---
layout: download
board_id: "pca10040"
title: "pca10040 Download"
name: "pca10040"
manufacturer: "unknown"
board_url: ""
board_image: "/assets/images/boards/unknown.jpg"
downloads_display: false
features:
---
This board hasn't been fully documented yet. Please make a pull request adding more info to this file.
The description should be written to inform a CircuitPython user what makes the board unique and link to relevant info about it.
## Purchase
Add any links to purchase the board
## Contribute
Have some info to add for this board? Edit the source for this page [here](https://github.com/adafruit/circuitpython-org/edit/master/_board/{{ page.board_id }}.md).

22
_board/sam32.md Normal file
View file

@ -0,0 +1,22 @@
---
layout: download
board_id: "sam32"
title: "sam32 Download"
name: "sam32"
manufacturer: "unknown"
board_url: ""
board_image: "/assets/images/boards/unknown.jpg"
downloads_display: false
features:
---
This board hasn't been fully documented yet. Please make a pull request adding more info to this file.
The description should be written to inform a CircuitPython user what makes the board unique and link to relevant info about it.
## Purchase
Add any links to purchase the board
## Contribute
Have some info to add for this board? Edit the source for this page [here](https://github.com/adafruit/circuitpython-org/edit/master/_board/{{ page.board_id }}.md).

View file

@ -53,6 +53,11 @@ permalink: /downloads
{% assign info = site.board | where: 'board_id', 'unknown' %} {% assign info = site.board | where: 'board_id', 'unknown' %}
{% endif %} {% endif %}
{% assign info = info[0] %} {% assign info = info[0] %}
{% if info.downloads_display == false %}
{% continue %}
{% endif %}
<div class="download" data-id="{{ board.id }}" <div class="download" data-id="{{ board.id }}"
data-name="{{ info.name | default: board.id }}" data-name="{{ info.name | default: board.id }}"
data-downloads="{{ board.downloads }}" data-downloads="{{ board.downloads }}"

View file

@ -6,6 +6,7 @@ name: "<board name>"
manufacturer: "<board manufacturer>" manufacturer: "<board manufacturer>"
board_url: "" board_url: ""
board_image: "/assets/images/boards/unknown.jpg" board_image: "/assets/images/boards/unknown.jpg"
downloads_display: true
features: features:
- ~5 interesting - ~5 interesting
- features - features