Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New attribute page_img: logos for for pages and sections #290

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

PhilReedData
Copy link
Contributor

@PhilReedData PhilReedData commented Oct 11, 2024

As discussed, I have borrowed the image page attribute from RO-Crate and used a new page_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 the page_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

  • Further testing on other sites.
  • Tweak the image sizes for mobile viewport and particularly wide/narrow images.
  • Perhaps a flag to turn the feature off in section navigation and/or pages.

Sample images

More images in the linked Google Doc above.
image
image
imageimage
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow the inclusion of page image metadata to be displayed in the section navigation tiles
1 participant