Functionality to add hero image to the homepage #579
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
At the CF workshop, we discussed improving the appearence of the CF conventions homepage. One thing we seemed to agree upon was adding an image to the top of the home page. In website jargon, this is often called a 'hero' image.
I have added the functionality to include a hero image on any page. Currently, when you bundle the website together, no image will be displayed. To display an image, the relevant
md
file must have ahero_image
attribute at the top of it. Currently, I have commented this attribute out in the index.md. See hereTo test this yourself, simply uncomment the
hero_image
attribute.I would not recommend using the image I have selected. I used this only as a proof on concept, but it is not high enough resolution and the header and button clash with it.
If you have an image that you think might be suitable, I am happy to go in again and make sure that the overlying header and button don't clash.
The button on top is a 'call to action'. You will see this at the entrance of most websites. This is what you want the user to do. In the case of CF, I think this is to read the latest release of the contentions, so I have included a button linking to that.
Whilst this proof of concept is shown only for the homepage, the functionality is there to add an image to any other page should one wish to in future.
Let me know what you think.
Kind regards,
Luke