The temptation of the module stack
Drupal has schema modules, and the instinct is to install several — one for articles, one for breadcrumbs, one for organization. Each adds config surfaces, update paths, and markup you do not control. For most sites, a single JSON-LD graph emitted from the theme covers every requirement with zero module weight.
What a self-managed graph looks like
In hook_preprocess_html or template preprocessing, build one @graph array: a WebPage node for the current URL, BreadcrumbList from your trail, BlogPosting or Article on content pages, and Organization/WebSite once on the front page. Render it as one <script type="application/ld+json"> — validatable, diffable, and entirely yours.
The cases for a module anyway
Two scenarios justify one: you have editors who need field-level schema mapping UI (rare), or you are emitting complex nested types like Event or Product with many mapped properties where a module's mapping layer saves real work. For Article, Breadcrumb, Organization, WebPage — writing it once in the theme is less total code than configuring a module.
Rules that keep it honest
Only emit what is visibly true on the page: an Article needs a real headline, real date, real author — not synthesized values. Keep dates in ISO 8601, use @id references so entities link within the graph, and never emit markup for content the page does not show. Structured data that contradicts the page is worse than none.
Testing without shipping blind
Google's Rich Results Test on a staging URL validates syntax and eligibility; Schema.org's validator checks vocabulary. Run both before launch and after any theme refactor — JSON-LD breaks silently, and Search Console tells you weeks later.
The maintenance argument
A fifty-line preprocess function you own beats three modules you configure but cannot read. When Google changes a requirement — and it does — you edit one array instead of waiting on module releases.
Structured data done deliberately? Part of our Drupal services.