Skip to content

Introduction to Metadata

Jackson Couse edited this page Jul 9, 2013 · 25 revisions

What is YAML?

Rather than writing directly in HTML, you can write article and blog submissions in two arguably simpler languages: YAML, which stands for “YAML Ain’t Markup Language” and is used for metadata at the top of a file that is otherwise written in Markdown (see next tutorial), a basic set of plain-text formatting conventions that are converted to the HTML see on the Amnesty International website.

A YAML metadata header looks like this:

---
categories: blog
published: true
title: "The title of this post"
layout: blog
topics: "dash-seperated-values-of-blog-categories"
"meta-title": "This is the title of this post for machines!"
"meta-description": And here's short summary description of this post for use in searchs, RSS feeds, mobile sites, and other restricted places 
"seo-keywords": "human rights, Canada"
---

Everything between the --- lines is metadata. Everything below the lines is the body of your text.

Clone this wiki locally