JSON-LD Article ❺🧪

Generate valid JSON-LD Structured data from CMS Content

Overview

Variants

  • Article

  • NewsArticle

  • BlogPosting

  • TechArticle (maybe)

https://developers.google.com/search/docs/appearance/structured-data/article

Usage Notes

Place this code in your site or page level /body code.

<script>
var article = new window.sa5.LdJsonArticle();
article.headline = `Article headline`;
article.addAuthor (`Bob Hershel`);
article.publisher = `Sygnal`;
article.generate();
</script>

.headline

.addAuthor()

.publisher

.generate()

Renders the JSON-LD as a script element and appends it to the <body>.

Last updated

Was this helpful?