This page demonstrates the custom_meta_tags frontmatter option which allows you to add arbitrary meta tags to the page head.
The custom_meta_tags field accepts an array of meta tag objects. Each object can have:
name - For standard meta tags like robots, author, etc.property - For Open Graph and other property-based tagscontent - The value of the meta tag (required)Add the custom_meta_tags property to your frontmatter:
---
title: My Page
custom_meta_tags:
- name: robots
content: noindex, nofollow
- name: author
content: John Doe
- property: og:locale
content: en_US
---
This page uses:
custom_meta_tags:
- name: robots
content: noindex, nofollow
- name: author
content: Shipyard Team
- property: og:locale
content: en_US
- property: article:author
content: https://github.com/levino
The above configuration generates these meta tags in the <head>:
<meta name="robots" content="noindex, nofollow">
<meta name="author" content="Shipyard Team">
<meta property="og:locale" content="en_US">
<meta property="article:author" content="https://github.com/levino">
Custom meta tags are useful for:
robots directives for specific pagesog:locale for regional contentcontent valuename for standard meta tagsproperty for Open Graph and similar property-based tags