forked from eduardoboucas/staticman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstaticman.yml
31 lines (30 loc) · 1.09 KB
/
staticman.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Configuration for Staticman
comments:
path: "data/comments/{options.postId}" # Directory where comments are stored
format: "yaml" # Format for storing the comments (can also be 'json')
moderation: true # Enable moderation if you want to manually approve comments
frontMatter: true # Store comments with front matter (for static site generators)
fields:
name:
type: "string"
required: true
message: "Please enter your name."
email:
type: "string"
required: true
message: "Please enter your email address."
validation: "^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$"
comment:
type: "string"
required: true
message: "Please enter a comment."
branch: "main" # The branch where comments will be committed
commitMessage: "Add comment by {fields.name}" # The commit message to use
name: "Staticman Comments" # The name for the commit author
requiredFields:
- name
- email
- comment
reCaptcha:
enabled: false # Set to true if you want to enable reCaptcha