Conversation
…improved layout and fallback handling
…nd new placement test script
… and FieldConfig for improved structure and maintainability
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This reverts commit 79b675f.
…lt path in FileProcessor
ac83321 to
279d351
Compare
|
@bilgeyucel This PR is a draft, as I see it now more like a github action that runs this process and commits automatically. If we decide to add this, here is how the social preview image would look like:
|
bilgeyucel
left a comment
There was a problem hiding this comment.
Love this, thank you @kacperlukawski!
| output_dir: static/images/social/blog | ||
| fields: | ||
| title: | ||
| font: scripts/social-images/fonts/GreycliffCFExtraBold.ttf |
There was a problem hiding this comment.
Can you change the font in the example? It should be Haffer or Inter
There was a problem hiding this comment.
We can remove the image for author pages. They can use the default image
There was a problem hiding this comment.
We can remove the images for blog posts; they already have a dedicated thumbnail.
There was a problem hiding this comment.
I see that emojis in the content title are not rendered in the thumbnail. I believe this problem causes the space in front of "Cookbook"
There was a problem hiding this comment.
I love having them for integrations! Are they rendered once? What happens when we decide to change the description? Also, do we need to make further changes on the haystack-integrations repo, especially in the frontmatter of the pages?
There was a problem hiding this comment.
Can you remove Courier and Greycliff fonts? They are old ones
| template: scripts/social-images/templates/blog.png | ||
| fields: | ||
| title: | ||
| font: scripts/social-images/fonts/Inter-Bold.ttf |
There was a problem hiding this comment.
Can you replace the fonts with Haffer equivalents?

The social preview images are used by LinkedIn and X natively whenever someone shares a link to the website. This PR attempts to automate this process by using templates specific to the content type. It is possible to define how YAML frontmatter attributes are rendered over the image in a configuration file. Currently, the images are generated when the
build.shscript is launched, but eventually should be run either as a GH bot or a pre-commit hook.Requirements: