move hero images to their own folder, and add config for setting the hero

This commit is contained in:
Justin Cooper 2020-02-05 11:21:51 -06:00
parent 316f823b61
commit d9293ededa
4 changed files with 4 additions and 2 deletions

View file

@ -3,6 +3,7 @@ email: justin@adafruit.com
description: >-
The easiest way to program microcontrollers
site_image: "https://circuitpython.org/assets/images/CircuitPythonLogo_Black.png"
hero_image: CircuitPython_Hero.jpg
timezone: America/New_York
twitter_username: circuitpython
github_username: adafruit

View file

Before

Width:  |  Height:  |  Size: 75 KiB

After

Width:  |  Height:  |  Size: 75 KiB

View file

Before

Width:  |  Height:  |  Size: 174 KiB

After

Width:  |  Height:  |  Size: 174 KiB

View file

@ -6,8 +6,9 @@ layout: home
<div class="headline-banner">
<div class="img-overlay"></div>
<img class="image-headline" alt="hero image"
src="{{ "assets/images/CircuitPython_Hero.jpg" |
relative_url }}"
src="{{ "assets/images/heroes/" |
append: site.hero_image |
relative_url }}"
/>
<div class="text">
<div class="title"><span>The easiest way to program microcontrollers</span></div>