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

Move images & generate thumbnails #31

Merged
merged 4 commits into from
Jun 22, 2021
Merged

Move images & generate thumbnails #31

merged 4 commits into from
Jun 22, 2021

Conversation

ThomasThelen
Copy link
Member

@ThomasThelen ThomasThelen commented Jun 14, 2021

There's not a whole lot to look at here.
Fixes #27 and partially #22

Changes

Removed card_image from Frontmatter

One change you'll see is that card_image no longer exists. Instead, Hugo's image processing is used to generate the card images. The other relevant change for this is in layouts/partials/cards.html. I still didn't remove images/ from the banner paths; I still don't know if it'll be more confusing or not for anyone using this, but it's not a problem at the moment.

Image Directories

The images have been moved to new directories and bg_image have been updated to reflect this.

@ThomasThelen ThomasThelen requested a review from robyngit June 14, 2021 21:23
Copy link
Member

@robyngit robyngit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! It might be smart to use the exact same strategy in the page-header.html template. The banner images that are currently used in this template are already optimized for this purpose - they are the right size and have the right aspect ratio for this purpose. However, I can imagine a content editor uploading a new banner image that is much too large for this purpose, which would make the page load time quite slow. It would be easy to add the same image processing to the template to re-size the banner image if it's too large.

layouts/partials/cards.html Outdated Show resolved Hide resolved
layouts/partials/cards.html Outdated Show resolved Hide resolved
layouts/partials/cards.html Outdated Show resolved Hide resolved
@ThomasThelen ThomasThelen requested a review from robyngit June 18, 2021 18:58
@ThomasThelen ThomasThelen merged commit 207f8f8 into main Jun 22, 2021
@ThomasThelen ThomasThelen deleted the restructure_images branch June 22, 2021 19:10
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.

Restructure the images folder
2 participants