diff --git a/generate-html.py b/generate-html.py index 028ab73..120f0da 100755 --- a/generate-html.py +++ b/generate-html.py @@ -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: diff --git a/src/en/overlay/ab-adc-pi-zero.md b/src/en/overlay/ab-adc-pi-zero.md index 07adc96..85aa937 100644 --- a/src/en/overlay/ab-adc-pi-zero.md +++ b/src/en/overlay/ab-adc-pi-zero.md @@ -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 diff --git a/src/en/overlay/drum-hat.md b/src/en/overlay/drum-hat.md index ad35f5d..c027368 100644 --- a/src/en/overlay/drum-hat.md +++ b/src/en/overlay/drum-hat.md @@ -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 diff --git a/src/en/overlay/piano-hat.md b/src/en/overlay/piano-hat.md index a653b60..0bf8da4 100644 --- a/src/en/overlay/piano-hat.md +++ b/src/en/overlay/piano-hat.md @@ -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 diff --git a/src/en/overlay/propeller-hat.md b/src/en/overlay/propeller-hat.md index 00797de..14aa4d6 100644 --- a/src/en/overlay/propeller-hat.md +++ b/src/en/overlay/propeller-hat.md @@ -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 diff --git a/src/en/settings.yaml b/src/en/settings.yaml index c771317..da4bf92 100644 --- a/src/en/settings.yaml +++ b/src/en/settings.yaml @@ -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