Manage Schema.Org with Bissetii in Hugo
Bissetii strives to provide an easy way to manage your page's Schema.Org data without needing too much manual work. Although complicated, it is necessary to boost your search engine optimization needs for easier parsing by crawlers.
This feature is available since
Bissetii opted the use of
ld+json approach as recommended by
Google Search Central mainly because Bissetii does not want its
content creators to write the content twice (once in Markdown, another in JSON).
This approach will generate a
<script type='application/ld+json'> HTML tag in
<head> section containing the Page data information. An example is shown
Facilitate Data Schema
Bissetii supplies a number of default data schema by default inside
data/bissetii/schema/ directory. The most notable example would be
WebPage.toml where it will generate every page as web page data structure.
If you want to build your own data schema, simply add a new TOML data file into
You can refer to the following resources for referencing a usable data structure:
- Schema.org Parameters
- Google Search Gallery
There are validators in the web allowing you to validate a page’s Schema.org data structure. Bissetii recommends the following:
- JSON Linter
- Google Rich Results Test
- Schema.org Validator
Selecting A Schema
Now, for any page, you can select an available schema via the page’s Hugo front
[schema] table. The field is
selectType and its value should be the
name of the TOML data file. The pattern is as such:
Still Continously Developing
Please keep in mind that this schema.org rendering is still under continuous development to facilitate an optimized content creation experience (and data structure maintenance).
Among notable developments would be page-specific schema fields via Hugo’s front matter, authorship correction, and etc.
That is all for managing Schema.org with Bissetii in Hugo. If you have any question to ask us directly, please feel free to raise it at our GitLab Issues Section. We will be happy to assist you.