You can use the Structured Data Theme Component on your own theme by following the instructions below. Also make sure to check out the docs about Theme Components.
Currently available schema types include:
-
BlogPosting
git submodule add https://github.com/devidw/hugo-theme-component-structured-data ./themes/hugo-theme-component-structured-data
theme = ["…", "hugo-theme-component-structured-data", "…"]