Sub topic 12
Marking Up Authorship and Dates with Article Structured Data
This chapter assumes you know basic HTML, can edit a page template or CMS field, and have read the earlier chapters on bylines, accountability, and AI disclosure. Here you will turn a real byline and real dates into Article structured data, and learn where the markup helps, where it does not, and which mistakes cause problems.
What structured data is, and what it is not
Structured data is machine-readable text that describes a page. Google reads it to understand what the page is about and who is responsible for it. The most common format is JSON-LD, a block of JSON placed in a <script> tag. The vocabulary comes from schema.org, and the type used here is Article.
Article markup gives Google explicit facts: the headline, the author, the publish date, and the last-modified date. Google can often work these out from the visible page, but markup removes guesswork.
Two limits matter for this tutorial:
- Markup does not boost rankings by itself. It helps Google interpret the page. It does not make a weak page strong.
- Markup must describe what readers can see. Marking up an author who is not named on the page, or a date that differs from the visible date, misrepresents the page.
Why this matters for AI-assisted pages
Earlier chapters covered accountability. A named person who stands behind the page is part of the trust signal readers and Google look for. Article markup is the machine-readable side of that decision. If your workflow assigns an editor who checked the facts and added first-hand experience, the markup should name that person. If it is a real person with a real author page, the markup connects the article to that page.
Dates work the same way. Readers judge freshness by them, and AI-assisted workflows make date abuse tempting, because a model can rewrite a paragraph in seconds and someone may be tempted to bump the date to look current. The markup should only report real changes.
The core example
This is a complete, minimal Article block:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "How to Choose a Standing Desk",
"datePublished": "2026-11-01T09:00:00+00:00",
"dateModified": "2026-11-20T14:30:00+00:00",
"author": [
{
"@type": "Person",
"name": "Jane Doe",
"url": "https://example.com/authors/jane-doe"
}
]
}
</script>The table explains each property.
| Property | What to put in it | Notes |
|---|---|---|
| `@context` | `https://schema.org` | Fixed value. |
| `@type` | `Article` | Subtypes such as `NewsArticle` and `BlogPosting` exist. Pick the one that fits. |
| `headline` | The article title | Keep it close to the visible title. Avoid very long headlines. |
| `datePublished` | When the page was first published | ISO 8601 format with a time zone offset. |
| `dateModified` | When the content last changed in a meaningful way | Must not be earlier than `datePublished`. |
| `author` | One or more people or organizations | Each needs `@type` and `name`. A `url` is strongly useful. |
Authorship rules
Name a real person
The name property should hold only the author's name. Do not add job titles, credentials, or phrases such as "Written by" to it. Put "Jane Doe", not "Dr. Jane Doe, Senior Editor, Written by".
If a page has several authors, list each as a separate object in the author array. Use @type: "Organization" only when the content truly is credited to an organization, such as a company newsroom.
Never credit a tool as the author
An AI writing tool cannot be held accountable for a page. Do not list a model or product as the author. The author is the person who directed, checked, and approved the work. Whether and how to mention AI assistance is a disclosure decision, covered in the previous chapter, and it belongs in visible text that readers can see.
Match the visible byline
The markup and the page should agree. If the page shows "By Jane Doe", the markup names Jane Doe. If you remove the visible byline, remove the author from the markup as well.
Link to an author page
The url property should point to a page about the author, ideally one that explains their experience and lists their work. A good author page supports the same E-E-A-T signals discussed earlier. A link to a page that does not exist, or to a generic site-wide "team" page that says nothing about the person, adds no value.
Date rules
Google uses datePublished and dateModified, and both should match what the page shows.
- Set
datePublishedonce, when the page first goes live. Do not change it later. - Update
dateModifiedonly when the content changes in a way a reader would care about: corrected facts, new data, revised recommendations. - Do not change
dateModifiedfor typo fixes, layout changes, or template updates. - Show a visible date on the page, and keep it consistent with the markup.
- Include a time zone offset. Without one, Google has to guess.
Refreshing a date without changing the substance is a form of misleading freshness. It is a bad habit for any page, and it is more tempting when a tool can generate a plausible "update" in seconds. Treat the date as a record of editorial work, not a lever.
Generating the markup from template data
Hand-writing JSON for every page invites mismatches. A better approach is to build the block from the same data that renders the page. This Python example produces valid JSON-LD from page fields and refuses to emit markup when the data is inconsistent.
import json
from datetime import datetime
def build_article_jsonld(title, published, modified, authors):
"""Return a JSON-LD script tag for an article.
published and modified are ISO 8601 strings with a time zone offset.
authors is a list of dicts with 'name' and 'url'.
"""
pub = datetime.fromisoformat(published)
mod = datetime.fromisoformat(modified)
if pub.tzinfo is None or mod.tzinfo is None:
raise ValueError("Dates need a time zone offset")
if mod < pub:
raise ValueError("dateModified is earlier than datePublished")
if not authors:
raise ValueError("At least one named author is required")
data = {
"@context": "https://schema.org",
"@type": "Article",
"headline": title,
"datePublished": published,
"dateModified": modified,
"author": [
{"@type": "Person", "name": a["name"], "url": a["url"]}
for a in authors
],
}
body = json.dumps(data, indent=2)
return f'<script type="application/ld+json">\n{body}\n</script>'
if __name__ == "__main__":
print(
build_article_jsonld(
"How to Choose a Standing Desk",
"2026-11-01T09:00:00+00:00",
"2026-11-20T14:30:00+00:00",
[{"name": "Jane Doe", "url": "https://example.com/authors/jane-doe"}],
)
)The function fails early on three common mistakes: a missing time zone, a modified date before the published date, and a missing author. A missing author is the most relevant one for AI-assisted work, because an unattributed page is the case you are trying to prevent.
One more detail: json.dumps escapes quotes correctly. If a headline contains a double quote or a </script> sequence, build the block with a serializer rather than string concatenation. For </script>, also replace </ with <\/ in the output, since an unescaped closing tag inside a script block would end it early.
How the pieces connect
The diagram shows why a single source of truth matters. Both outputs come from one record, so they cannot disagree.
Common errors
- Author mismatch. The markup names an author who appears nowhere on the page. Fix it by removing the markup or adding a real, visible byline.
- Fake or generic authors. Invented personas, stock-photo "experts", or a name such as "Admin" mislead readers. Use real people only.
- Tool as author. Listing an AI product in
author. Name the accountable human. - Date inflation. Bumping
dateModifiedfor trivial edits or with no edit at all. - Missing time zone. A date like
2026-11-20or2026-11-20T14:30:00leaves the offset ambiguous. - Duplicate or conflicting blocks. A theme and a plugin each output an Article block with different values. Keep one.
- Invalid JSON. A trailing comma or unescaped quote makes the whole block unreadable.
- Markup for content not on the page. Every value must be something a reader can verify.
Testing the markup
Before publishing, check the block with Google's Rich Results Test or the Schema Markup Validator. The first shows what Google can parse for search features. The second validates against the schema.org vocabulary in general. After publication, the URL Inspection tool in Search Console shows how Google renders the live page. Passing validation shows the syntax is correct. It does not show the content is good or the claims are true.
Also keep expectations realistic. Google does not promise a visual change in results from Article markup, and it may choose to show or ignore dates and authors in search. Add the markup because it is accurate and helps interpretation, not because you expect a ranking effect.
Checklist for this step
- The author in the markup is a real person who is also named on the visible page.
- The author
urlleads to a real page about that person. - No AI tool is listed as author.
datePublishedwas set once and matches the visible date.dateModifiedreflects a substantive change and is not earlier thandatePublished.- Dates include a time zone offset.
- Only one Article block exists per page, and it validates.
Exercise
A site owner uses an AI tool to rewrite the intro of a 2024 article, fixes two typos, changes nothing else of substance, and sets dateModified to today. The visible byline shows "Staff", but the markup lists "Alex Rivera" as the author. Name the two problems and say how to fix each.
Show answer
First, the date: the edit was a rewrite of wording plus typo fixes with no new facts or recommendations, so dateModified should not be bumped just to look fresh. Leave it as the last substantive update (or update it only if a reader would care about the change). Second, the author mismatch: the markup names someone the page does not show. Either add a visible byline for Alex Rivera, if Alex really reviewed and is accountable for the page, with a link to an author page, or remove the author from the markup. Replacing "Staff" with a real accountable person on the page is the better fix.
Exercise
Why does the Python example raise an error when the author list is empty, and why should the author never be the name of the AI tool?
Show answer
An empty list would produce markup with no accountable person, which is the situation this workflow is meant to avoid. A tool cannot be held accountable for the content, so the author must be the human who directed, verified, and approved the page. Any AI assistance belongs in visible disclosure text, not in the author property.