Moved featured selection to settings
This commit is contained in:
parent
be36b47d7b
commit
eea132e803
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue