Automagically populate featuredImage, featuredImagePreview and images #23

Closed
opened 2026-10-05 02:22:37 +02:00 by adam · 3 comments
Owner

It would be great if there would be a feature to populate the follwing based on the images in the current post.

featuredImage: "images/myPostImage.png"
featuredImagePreview: "images/myPostImage.png"
images:
 - "/<slug>/images/myPostImage.png"

The images attribute should represent the full path to the image including slug. Otherwise the OG and Twitter cards do not work properly.

It would be great if there would be a feature to populate the follwing based on the images in the current post. ```yaml featuredImage: "images/myPostImage.png" featuredImagePreview: "images/myPostImage.png" images: - "/<slug>/images/myPostImage.png" ``` The `images` attribute should represent the full path to the image including slug. Otherwise the OG and Twitter cards do not work properly. <!-- github-sync-id:801645138 -->
adam closed this issue 2026-10-05 02:22:37 +02:00
Author
Owner

Thanks for the suggestion.

Thanks for the suggestion. <!-- github-comment-id:780827877 -->
Author
Owner

@f-bader with the frontMatter.custom.scripts you will be able to achieve this.

@f-bader with the [`frontMatter.custom.scripts`](https://github.com/estruyf/vscode-front-matter#frontmattercustomscripts) you will be able to achieve this. <!-- github-comment-id:883271817 -->
Author
Owner

Closing the issue.

Closing the issue. <!-- github-comment-id:893786974 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/vscode-front-matter#23