Recipe Frontmatter
Recipe frontmatter is a YAML block at the beginning of a recipe file that contains structured metadata about the recipe. All frontmatter fields are optional.
Frontmatter Structure
Section titled “Frontmatter Structure”Frontmatter is defined between two lines of three dashes (---) at the start of a Markdown file:
---title: Recipe Nameservings: 4time: 30 minutessource: https://example.com/recipetags: [dinner, quick, vegetarian]---
# Recipe content starts here...Supported Fields
Section titled “Supported Fields”Type: String
The name of the recipe. This is how Ponzu refers to the recipe in the list view.
If title is not present in the frontmatter, Ponzu will look for a top-level header (# Header)
in the recipe contents and use that for the title instead.
title: Homemade Pizza Doughservings
Section titled “servings”Type: Integer
The number of servings the recipe yields.
servings: 6source
Section titled “source”Type: String
The original source of the recipe. This can be a URL, book title, person’s name, or any other attribution.
Examples:
source: https://www.example.com/recipes/pastasource: Joy of Cooking, p. 234source: Grandma's recipe bookType: List of strings
A list of tags to categorize and organize the recipe. Tags are open-ended and can be anything meaningful to you.
Examples:
tags: dinner, Mexican, vegetarianYou can also specify tags with a bulleted list, if you prefer:
---title: Margherita Pizzatags: - pizza - italian - vegetarian---Some additional notes on how Ponzu detects tags:
- Commas are delimiters. Tags on a single line are separated by commas, so the tags themselves cannot contain a comma. The bulleted list format has no such restriction.
- Spaces are allowed.
quick meals,gluten free, andunder 30 minare all valid.
Type: String
Time required to prepare and/or cook the recipe. The format is open-ended and can be expressed in whatever way makes sense for your recipe.
Example:
time: 30 minutestime: 1 hour 15 minutestime: 2-3 hourstime: Prep 20m, Cook 45mComplete Example
Section titled “Complete Example”---title: Quick Marinara Sauceservings: 4time: 25 minutessource: https://cooking.example.com/marinaratags: [sauce, italian, vegetarian, quick]---
## Ingredients
- 2 cans whole tomatoes- 4 cloves garlic- Fresh basil- Olive oil- Salt and pepper
## Instructions
1. Heat olive oil in a pan...