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

Cover images for blog posts #4364

Closed
4 tasks done
StarfallProjects opened this issue Sep 14, 2022 · 9 comments
Closed
4 tasks done

Cover images for blog posts #4364

StarfallProjects opened this issue Sep 14, 2022 · 9 comments
Labels
change request Issue requests a new feature or improvement resolved by config change Issue can be mitigated by the reporter

Comments

@StarfallProjects
Copy link
Sponsor Contributor

Contribution guidelines

I want to suggest an idea and checked that ...

  • ... to my best knowledge, my idea wouldn't break something for other users
  • ... the documentation does not mention anything about my idea
  • ... there are no open or closed issues that are related to my idea

Description

Add support for blog post cover images. It should be possible to display the cover images:

  • on the blog index page
  • at the top of the post
  • both

Ideally some style controls:

  • position in relation to other blog elements
  • ?

Is it worth considering supporting social cards as cover images, as part of this feature?

Use Cases

Make our blogs prettier

Screenshots / Mockups

No response

@squidfunk
Copy link
Owner

squidfunk commented Sep 14, 2022

Thanks for suggesting. You know that you can use an image in the post excerpt, which is the displayed on the index page, as well as for the post? I know that this is not the same as a cover image, but for the time being, it might do the job.

Is it worth considering supporting social cards as cover images, as part of this feature?

I'm not sure what you mean. Should social cards also use the cover image as a background?

@squidfunk squidfunk added the change request Issue requests a new feature or improvement label Sep 14, 2022
@StarfallProjects
Copy link
Sponsor Contributor Author

I'm not sure what you mean. Should social cards also use the cover image as a background?

I meant make it an option to set the generated social cards as cover images.

@squidfunk
Copy link
Owner

I don't think they work well, since they're deliberately generated for social networks, i.e. the resolutions might be too low.

@squidfunk
Copy link
Owner

Also, please share some examples (links + screenshots) how you imagine cover images to look, e.g. by other blogs.

@squidfunk
Copy link
Owner

I just read your article on how to add cover images. In fact, you don't need to use theme extension to do so, just add the image to the Markdown file. You can add it below:

Bildschirmfoto 2022-09-14 um 21 12 49

... or above the headline:

Bildschirmfoto 2022-09-14 um 21 13 34

Example code:

---
date: 2022-09-12
authors: [squidfunk]
description: >
  Our new blog is built with the brand new built-in blog plugin. You can build
  a blog alongside your documentation or standalone
categories:
  - Blog
links:
  - Getting started with Insiders: insiders/getting-started.md#requirements
  - setup/setting-up-a-blog.md#built-in-blog-plugin
---

![K](https://placekitten.com/g/1440/900)

# Blog support just landed

__Hey there! You're looking at our new blog, built with the brand new
[built-in blog plugin]. With this plugin, you can easily build a blog alongside
your documentation or standalone.__

We can improve the spacing if the image is placed above, though. This allows the author to position the image as he likes.

@StarfallProjects
Copy link
Sponsor Contributor Author

I'll add that to the blog post. Will let the blog post stay as-is otherwise, as it's hopefully still a useful example for doing more complex customisation.

@squidfunk
Copy link
Owner

Great. Does that mean that this issue can be considered resolved?

@StarfallProjects
Copy link
Sponsor Contributor Author

I think it'd be nice to have an alternative (so you could for instance have a cover image on the index page but not in the post) But super-low priority.

@squidfunk
Copy link
Owner

I'd consider this an edge case, since just using Markdown offers the most flexibility.

@squidfunk squidfunk added the resolved by config change Issue can be mitigated by the reporter label Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change request Issue requests a new feature or improvement resolved by config change Issue can be mitigated by the reporter
Projects
None yet
Development

No branches or pull requests

2 participants