Skip to content

Conversation

@some-natalie
Copy link
Contributor

change preview image on post and home page based on light/dark mode, scaling

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Improvement (refactoring and improving code)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Description

This PR adds the ability to change the image seen by the user for the post preview on the home page and on the page if set in the YAML front matter.

Additional context

Closes Post image and homepage card color change by theme change Fixes #2554

…ht/dark mode, scaling

This PR adds the ability to change the image seen by the user for the post preview on the home page and on the page if set in the YAML front matter.

Closes Post image and homepage card color change by theme change
Fixes cotes2020#2554
@some-natalie
Copy link
Contributor Author

Test suite failing to find the image on the CDN path defined in _config.yml. Not sure how you'd like to fix that build pipeline, but happy to update this PR telling html-proofer to ignore the CDN paths.

@lotusk08
Copy link

Why not keep it simple, just swap the image without adding more in-line CSS?

Signed-off-by: Natalie Somersall <natalie.somersall@gmail.com>
Signed-off-by: Natalie Somersall <natalie.somersall@gmail.com>
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.

Post image and homepage card color change by theme change

2 participants