-
Notifications
You must be signed in to change notification settings - Fork 4
/
staticman.yml
31 lines (30 loc) · 1.42 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
31
# Edit accordingly
comments:
allowedFields: ["name", "email", "comment", "replyID", "replyName", "replyThread"]
allowedOrigins: ["localhost", "example.com"]
branch: "master" # should match your config.toml
filename: "comment-{@date:YYYY-MM-DDTHH-mm-ss.SSS}"
format: "yaml"
commitMessage: "New Staticman comment in {options.slug}"
generatedFields:
date:
type: date
options:
format: "iso8601"
moderation: false
name: "Fancy Site Title"
path: "data/comments/{options.slug}"
requiredFields: ["name", "email", "comment"]
transforms:
email: md5
# reCAPTCHA (OPTIONAL)
# Register your domain at https://www.google.com/recaptcha/ and choose reCAPTCHA V2
# Use your OWN siteKey and secret.
reCaptcha:
enabled: false
# siteKey and secret should match your config.toml
#siteKey: "6Lcv8G8UAAAAAEqV1Y-XEPum00C_DxhD6O--qkFo"
# (!) ENCRYPT reCaptcha secret key using Staticman /encrypt endpoint
# i.e. https://{staticman-endpoint}/v3/encrypt/{your-site-secret}
# For more information, https://staticman.net/docs/encryption
#secret: "p5uHlH9hCqpMJaGKXdt5MEWFo7K6fX8hoYUwR3aIafOI6rtItLauaDCkGOucysJtrVZy+sHffioGzMsOU64JFDSyPQgrXujegcOHFRXHhD4fOUuBXSvV+OZ8JhSPTGWaRcQcoiGX4pT5hlebLddOl59b6sn6kU1ODQcEbhP83xVLZlaTWOrNrF5Wvy3TMXpH5gyl1tZEORxADAShMYyUbNR7XZYLEg1DfgIBHfIg3cKwdFt7KVLejFGKIiBYRAZDE2JuHItNmzJ2x9JgSK3E+XnShV5tuWpncnyFonJVHGEky/zRfUVLHobDMcJ/u9nlZqE8u47W+833F1WaIYuwNw=="