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

Optimal size of post picture #93

Open
Becheler opened this issue Jan 17, 2022 · 1 comment
Open

Optimal size of post picture #93

Becheler opened this issue Jan 17, 2022 · 1 comment

Comments

@Becheler
Copy link

I am having trouble to come with pictures that fit perfectly the thumbnail and the top of every post. They seem to never fit both.
Is there any ideal dimension?

@HRHDaniel
Copy link

@Becheler I noticed the same thing. From the example posts and images, there seemed to be several at about a 1.5 ratio...
width = 1.5 x height
1280 x 853

That size seems to work pretty well.

However, in several cases I decided it was just easier to use a different image, and I've created a pull request to allow that.
#101

If that doesn't get merged, just look at the changes I made to index.html

With those changes in place you can add two optional front matter variables, thumb and subtitle

---
layout: post
title:  "Post Title"
subtitle: "Some short post description" # subtitle for index page. Default: first 15 words of the post content
date:   2023-03-10 10:00:00 -0600
img: post-image.png  # image to display at top of post
thumb: post-thumbnail.png  # image for index page. Defaults to img if not provided.
tags: [] # add tag
---

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

No branches or pull requests

2 participants