Closed RichNSD closed 1 year ago
I think the "yes" is the problem, compare https://github.com/Phlow/feeling-responsive/blob/gh-pages/_posts/design/2014-08-19-page-fullwidth.md?plain=1 and https://github.com/NewSpectrum/Technovine-Site/blob/gh-pages/pages/contact.md?plain=1#LL11C4-L11C20
Also see what you're missing (image URL):
The header is defined at: https://github.com/Phlow/feeling-responsive/blob/6b298e4a7a32eb411f7d8b976737539389ba04ec/_includes/_masthead.html#L49-L63
and filled with an image at: https://github.com/Phlow/feeling-responsive/blob/6b298e4a7a32eb411f7d8b976737539389ba04ec/_includes/_footer_scripts.html#L11-L16
The key here is that {% elsif page.header.image_fullwidth %}
doesn't check for a boolean, but it checks for page.header.image_fullwidth != NULL
. In most cases in programming there's no need to have a flag saying "true" and another field for the actual data.
I think the "yes" is the problem - @TWiStErRob
Wonderful, you were right. :sunglasses:
Thanks for your help!
header:
- image_fullwidth: yes
header:
- image_fullwidth: # Image Filename
Summary
The only full-width 'hero' image that loads correctly right now is on the Homepage, which is still the original file that came with the template:
All other pages in the
~/pages
folder build, but the space where the header image goes is currently empty.Details
The repository is public so if you need to see anything from the files you can check them out there.
Configuration Settings
Config Summary
Filtered information from the
_config.yml
Frontmatter
The YAML frontmatter from the About page
Source:
about.md
Let me know if you need any other information.