Adding FAQ (Frequently Asked Questions) Schema to Hugo-based website

It can also be done with the same logic as the question asked in the topic here. I already asked the question to add a data schema to the head section when using the frequently asked questions shortcode.