---
title: "Schema.org for a Blog · v2 · Unhead"
meta:
  "og:description": "Use defineArticle() with @type: 'BlogPosting' to mark up blog posts. This enables rich snippets showing author, publish date, and article images in search results."
  "og:title": "Schema.org for a Blog · v2 · Unhead"
  description: "Use defineArticle() with @type: 'BlogPosting' to mark up blog posts. This enables rich snippets showing author, publish date, and article images in search results."
---

**Recipes**

# **Schema.org for a Blog**

**On this page **

- [Useful Links](#useful-links)
- [How do I mark up a blog article?](#how-do-i-mark-up-a-blog-article)
- [How do I specify the article type?](#how-do-i-specify-the-article-type)
- [How do I add an author?](#how-do-i-add-an-author)
- [How do I mark up blog archive pages?](#how-do-i-mark-up-blog-archive-pages)
- [Related Recipes](#related-recipes)

Use `defineArticle()` with `@type: 'BlogPosting'` to mark up blog posts. This enables rich snippets showing author, publish date, and article images in search results.

Schema.org Article markup helps Google display enhanced search results with author info, thumbnails, and publication dates - improving click-through rates.

## [Useful Links](#useful-links)

- [**Article | Google Search Central**](https://developers.google.com/search/docs/advanced/structured-data/article)
- [**Article Schema | Yoast**](https://developer.yoast.com/features/schema/pieces/article)

## [How do I mark up a blog article?](#how-do-i-mark-up-a-blog-article)

The [**defineArticle**](https://unhead.unjs.io/docs/v2/schema-org/api/schema/article) function is provided to create Article Schema whilst handling relations for you.

Note that some fields may already be inferred, see [**Schema.org Params**](https://unhead.unjs.io/docs/v2/schema-org/guides/core-concepts/params)

```
import { defineArticle, useSchemaOrg } from '@unhead/schema-org/solid-js'

useSchemaOrg([
  defineArticle({
    // name and description can usually be inferred
    image: '/photos/16x9/photo.jpg',
    datePublished: new Date(2020, 1, 1),
    dateModified: new Date(2020, 1, 1),
  })
])
```

## [How do I specify the article type?](#how-do-i-specify-the-article-type)

Providing a type of Article can help clarify what kind of content the page is about.

The most common types are: `BlogPosting` and `NewsArticle`.

```
import { defineArticle, useSchemaOrg } from '@unhead/schema-org/solid-js'

useSchemaOrg([
  defineArticle({
    '@type': 'BlogPosting',
    // ...
  })
])
```

See the [**Article Types**](https://unhead.unjs.io/docs/v2/schema-org/api/schema/article#sub-types) for the list of available types.

## [How do I add an author?](#how-do-i-add-an-author)

If the author of the article isn't the [**site identity**](https://unhead.unjs.io/docs/v2/schema-org/guides/recipes/identity), then you'll need to config the author or authors.

When defining a Person when an Article is present, it will automatically associate them as the author.

```
import { defineArticle, useSchemaOrg } from '@unhead/schema-org/solid-js'

useSchemaOrg([
  defineArticle({
    headline: 'My Article',
    author: [
      {
        name: 'John doe',
        url: 'https://johndoe.com',
      },
      {
        name: 'Jane doe',
        url: 'https://janedoe.com',
      },
    ]
  })
])
```

## [How do I mark up blog archive pages?](#how-do-i-mark-up-blog-archive-pages)

Assuming you have the `WebPage` and `WebSite` schema loaded in from a parent layout component, you can augment the `WebPage` type to better indicate the purpose of the page.

See [**CollectionPage**](https://schema.org/CollectionPage) for more information.

```
import { defineWebPage, useSchemaOrg } from '@unhead/schema-org/solid-js'

useSchemaOrg([
  defineWebPage({
    '@type': 'CollectionPage'
  }),
])
```

## [Related Recipes](#related-recipes)

- [**Setting Up Your Identity**](https://unhead.unjs.io/docs/v2/schema-org/guides/recipes/identity) - Define your organization/person
- [**Breadcrumbs**](https://unhead.unjs.io/docs/v2/schema-org/guides/recipes/breadcrumbs) - Add navigation breadcrumbs
- [**FAQ Page**](https://unhead.unjs.io/docs/v2/schema-org/guides/recipes/faq) - Add FAQ structured data

[Edit this page](https://github.com/unjs/unhead/edit/v2.1.2/docs/v2/schema-org/2.guides/4.recipes/blog.md)

**Did this page help you? **

[**Identity** Learn how to choose an identity for your Schema.org.](https://unhead.unjs.io/docs/v2/schema-org/guides/recipes/identity) [**Breadcrumbs** Use defineBreadcrumb() with an array of { name, item } objects to create breadcrumb navigation markup. Google displays this as a clickable path in search results instead of showing the raw URL.](https://unhead.unjs.io/docs/v2/schema-org/guides/recipes/breadcrumbs)

**On this page **

- [Useful Links](#useful-links)
- [How do I mark up a blog article?](#how-do-i-mark-up-a-blog-article)
- [How do I specify the article type?](#how-do-i-specify-the-article-type)
- [How do I add an author?](#how-do-i-add-an-author)
- [How do I mark up blog archive pages?](#how-do-i-mark-up-blog-archive-pages)
- [Related Recipes](#related-recipes)