Skip to content

Commit

Permalink
add recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
hay-kot committed Nov 27, 2022
1 parent 5f96a58 commit 0c53cef
Showing 1 changed file with 50 additions and 1 deletion.
51 changes: 50 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,53 @@ content:

### Recipes

TODO
#### Blog Requirements

```yaml
rules:
FM001:
level: error
description: "blog post requirements"
builtin.required:
- "title"
- "slug"
- "description"
- "date"
- "keywords"
builtin.date:
format:
- "2006-01-02"
fields:
- "date"
builtin.length:
min: 2
max: 5
fields:
- "keywords"
- "categories"
- "tags"
builtin.match:
re:
- "^[a-z0-9]+(?:-[a-z0-9]+)*$"
fields:
- "slug"
```

#### Ignore Files that start with an underscore

```yaml
content:
- name: Blog Posts
paths:
- content/blog/**/[!_]*.md
rules:
- FM001
- FM002
- FM003
```

#### Regular Expressions

| Description | Regex |
| ----------- | -------------------------- |
| Slug | ^[a-z0-9]+(?:-[a-z0-9]+)*$ |

0 comments on commit 0c53cef

Please sign in to comment.