New attribute page_img: logos for for pages and sections #290
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.
As discussed, I have borrowed the
image
page attribute from RO-Crate and used a newpage_img
attribute for pages to show a graphic such as a logo to the side of the page title. It also shows on the section navigation cards. There is no change to the rendered HTML in either place unless thepage_img
attribute appears in the front-matter of a page.More details and images are described in a Google Doc.
This has been tested on a branch of the FAIRDOM website, and in the ETT site itself. I used the following code in
_config.yml
to make a remote call:remote_theme: PhilReedData/elixir-toolkit-theme@page-img-007
This is a fork from version 3.2.0. I did not mean to change the Gemfile.lock file.
To do
Sample images
More images in the linked Google Doc above.