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

Allow for a single static image for all blog posts that don't have their own image #189

Open
choldgraf opened this issue Dec 31, 2022 · 0 comments

Comments

@choldgraf
Copy link
Contributor

choldgraf commented Dec 31, 2022

Describe the feature

Currently, I believe there are two image options for ablog:

  • No image: no blog post image
  • blog_auto_image: which will display the first image only if it exists

It would be useful if there were a default image fallback option, in case a person wanted images, but didn't have them in their blog post.

Ideas

I can think of three ways you could do this:

  1. Allow linking a static image that would serve as the image unless over-written by the post directive, or the auto image
  2. Auto-link the site logo following a similar logic
  3. Check whether there is og:image set in the page's metadata (if building on HTML) and set that as the blog post image if it exists.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants