Replies: 1 comment
-
What I am doing, without config but just standard functionality, is to include a separate preview image per post in the front matter, e.g.:
Note that due to an issue with the standard opengraph tag generation, you need to provide the path to the image. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone!
First of all: I'm a big fan of the theme, thank you so much for maintaining & contributing to it.
What I'd like to change
Make the rendering of the
feature
image as cover image on pages optional via site parameter.Why I'd like to change it
Consider the following scenario: You might release a post/article/page accompanied with an adequate
feature.png
. So far, so good. But for stylistic reasons, you only want thefeature
image to appear asog:meta
property for social embeds, but not actually rendered as cover image at the top of the corresponding page.Take for example my CV page: https://ka1.io/cv/. I decided to not include a

feature
image, as i like the minimal top of the page. I end up with the following open graph link preview:What I actually want to end up with:

How I'd like to change it
For example, in
_default/single.html
change the following blockto
Setting the site parameter to
default true
leaves the current standard intact, while giving me the flexibility to edit the page frontmatter to ignore the cover image -- for example my CV page:Conclusion
What I end up with is property
<meta property="og:image" content="http://localhost:1313/cv/feature.png">
, without the rendered cover image on the page. This gives me the flexibility to render high quality social open graph link previews without a possible unwanted cover image on the corresponding page.Are there any easier solutions for this? What do you think about this? :)
Cheers,
Kai
Beta Was this translation helpful? Give feedback.
All reactions