feat: added keyword codec (partially works)

This commit is contained in:
2025-08-19 19:06:08 +02:00
parent 210b31aef8
commit 69c2550f44
24 changed files with 964 additions and 80 deletions

View File

@@ -0,0 +1,20 @@
---
@type: Book
name: The Great Book
author:
@type: Person
name: Jane Doe
email: jane.doe@example.com
tags:
- fiction
- adventure
chapters:
- name: Chapter 1
pages: 20
- name: Chapter 2
pages: 30
---
# The Great Book
This is the content of the great book.

View File

@@ -0,0 +1,26 @@
{
"@context": "https://schema.org",
"@type": "Book",
"name": "The Great Book",
"author": {
"@type": "Person",
"name": "Jane Doe",
"email": "jane.doe@example.com"
},
"tags": [
"fiction",
"adventure"
],
"chapters": [
{
"name": "Chapter 1",
"pages": 20
},
{
"name": "Chapter 2",
"pages": 30
}
],
"headline": "The Great Book",
"articleBody": "This is the content of the great book."
}

View File

@@ -1,5 +1,6 @@
{
"@context": "https://schema.org",
"@schema": "Recipe",
"@type": "Recipe",
"name": "Simple Salad",
"image": "https://example.com/salad.jpg",

View File

@@ -8,6 +8,7 @@ recipeYield: 2 servings
---
# Simple Salad
#healthy #salad
A quick green salad.

View File

@@ -1,5 +1,6 @@
{
"@context": "https://schema.org",
"@schema": "Recipe",
"@type": "Recipe",
"name": "Simple Salad",
"image": "https://example.com/salad.jpg",
@@ -7,6 +8,10 @@
"@type": "Person",
"name": "Alex Chef"
},
"keywords": [
"healthy",
"salad"
],
"description": "A quick green salad.",
"prepTime": "PT10M",
"cookTime": "PT0M",

View File

@@ -0,0 +1,14 @@
---
@type: Recipe
name: Typo Recipe
---
# Typo Recipe
## Ingredints
- Item 1
- Item 2
## Stps
1. Step 1
2. Step 2

View File

@@ -0,0 +1,13 @@
{
"@context": "https://schema.org",
"@type": "Recipe",
"name": "Typo Recipe",
"recipeIngredient": [
"Item 1",
"Item 2"
],
"recipeInstructions": [
"Step 1",
"Step 2"
]
}