Moved featured selection to settings

This commit is contained in:
Phil Howard 2016-02-22 20:43:09 +00:00
parent be36b47d7b
commit eea132e803
6 changed files with 6 additions and 4 deletions

View File

@ -452,7 +452,7 @@ for overlay in overlays:
overlays_html += [link]
if 'featured' in overlay and 'image' in overlay and len(featured_boards) < 3:
if overlay['src'] in pinout.settings['featured'] and 'image' in overlay and len(featured_boards) < 3:
featured_boards.append(overlay)
if 'class' in overlay and 'type' in overlay:

View File

@ -3,6 +3,7 @@
name: ADC Pi Zero
class: board
type: other
image: 'ab-adc-pi-zero.png'
manufacturer: AB Electronics UK
description: 8 channel Analogue to Digital Converter
url: https://www.abelectronics.co.uk/p/69/ADC-Pi-Zero-Raspberry-Pi-Analogue-to-Digital-converter

View File

@ -3,7 +3,6 @@
class: board
type: instrument
name: Drum HAT
featured: true
image: 'drum-hat.png'
manufacturer: Pimoroni
description: An 8 pad finger Drum HAT for your Raspberry Pi

View File

@ -3,7 +3,6 @@
class: board
type: instrument
name: Piano HAT
featured: true
image: 'piano-hat.png'
manufacturer: Pimoroni
description: A tiny Pi piano with 16 touch-sensitive buttons

View File

@ -3,7 +3,6 @@
class: board
type: other
name: Propeller HAT
featured: true
image: 'propeller-hat.png'
manufacturer: Pimoroni
description: The 8-core Propeller Microcontroller in HAT form-factor

View File

@ -24,6 +24,10 @@ strings:
- more_information: 'More Information'
- github_repository: 'GitHub Repository'
- buy_now: 'Buy Now'
featured:
- piano-hat
- propeller-hat
- ab-adc-pi-zero
overlays:
- ground
- uart