Examples for custom.scripts #28

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

Hi, thanks for your great extension for Hugo user. I have a little problem when design a custom action. Would you please provide some codes / examples for frontMatter.custom.scripts?
Thanks very much~

Hi, thanks for your great extension for Hugo user. I have a little problem when design a custom action. Would you please provide some codes / examples for `frontMatter.custom.scripts`? Thanks very much~ <!-- github-sync-id:938700165 -->
adam closed this issue 2026-10-05 02:22:52 +02:00
Author
Owner

On the readme, there was a sample provided. I have updated this one, hope it makes it a bit clearer. The script itself can also be found here: https://github.com/estruyf/vscode-front-matter/blob/master/sample/script-sample.js

Let me know if you have any other questions about it.

On the readme, there was a sample provided. I have updated this one, hope it makes it a bit clearer. The script itself can also be found here: https://github.com/estruyf/vscode-front-matter/blob/master/sample/script-sample.js Let me know if you have any other questions about it. <!-- github-comment-id:875495690 -->
Author
Owner

On the readme, there was a sample provided. I have updated this one, hope it makes it a bit clearer. The script itself can also be found here: https://github.com/estruyf/vscode-front-matter/blob/master/sample/script-sample.js

Let me know if you have any other questions about it.

Thank you very much for your kindly reply~ That is a great toturial example for a beginer like me. Actually, I want to active an action which can add a shortcode by only an action click on the panel. Anyway, I am going to read your source codes and have a try to achieve it.

Best Regards

> On the readme, there was a sample provided. I have updated this one, hope it makes it a bit clearer. The script itself can also be found here: https://github.com/estruyf/vscode-front-matter/blob/master/sample/script-sample.js > > Let me know if you have any other questions about it. Thank you very much for your kindly reply~ That is a great toturial example for a beginer like me. Actually, I want to active an action which can add a shortcode by only an action click on the panel. Anyway, I am going to read your source codes and have a try to achieve it. Best Regards <!-- github-comment-id:876105186 -->
Author
Owner

Going to close this issue. Feel free to let me know if more details are required.

Also wrote an article about how I use it to generate my blog its preview images: https://www.eliostruyf.com/generate-open-graph-preview-image-code-front-matter/

Going to close this issue. Feel free to let me know if more details are required. Also wrote an article about how I use it to generate my blog its preview images: https://www.eliostruyf.com/generate-open-graph-preview-image-code-front-matter/ <!-- github-comment-id:896016563 -->
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#28