Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/halogenica/beautifulhugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Adele <bruno@adele.im>2017-11-18 08:00:33 +0300
committerGitHub <noreply@github.com>2017-11-18 08:00:33 +0300
commitbc68b068800f55bf2022e62632fef96662073098 (patch)
treea2dd6dfbe87680a86c523e853bab8bd45972ca8d /README.md
parent8a0d06525df5eb946022622547be7a3cddf83a14 (diff)
Add more configuration for staticman
Diffstat (limited to 'README.md')
-rw-r--r--README.md33
1 files changed, 30 insertions, 3 deletions
diff --git a/README.md b/README.md
index 47cdbfb..2512aa0 100644
--- a/README.md
+++ b/README.md
@@ -67,17 +67,44 @@ To use this feature, uncomment and fill out the `disqusShortname` parameter in `
Add *staticman* configuration section in `config.toml` or `config.yaml`
-Sample configuration
+Sample `config.yaml` configuration
```
staticman:
- api: https://api.staticman.net/v2/entry/badele/blog.jesuislibre.org/master/comments
- pulls: https://github.com/badele/blog.jesuislibre.org/pulls
+ api: https://api.staticman.net/v2/entry/<USERNAME>/<REPOSITORY-BLOGNAME>/master/comments
+ pulls: https://github.com/<USERNAME>/<REPOSITORY-BLOGNAME>/pulls
recaptcha:
sitekey: "6LeGeTgUAAAAAAqVrfTwox1kJQFdWl-mLzKasV0v"
secret: "hsGjWtWHR4HK4pT7cUsWTArJdZDxxE2pkdg/ArwCguqYQrhuubjj3RS9C5qa8xu4cx/Y9EwHwAMEeXPCZbLR9eW1K9LshissvNcYFfC/b8KKb4deH4V1+oqJEk/JcoK6jp6Rr2nZV4rjDP9M7nunC3WR5UGwMIYb8kKhur9pAic="
```
+You must also configure the `staticman.yml` in you blog website.
+
+```
+comments:
+ allowedFields: ["name", "email", "website", "comment"]
+ branch : "master"
+ commitMessage : "New comment in {options.slug}"
+ path: "data/comments/{options.slug}/{options.parent}"
+ filename : "comment-{@timestamp}"
+ format : "yaml"
+ moderation : true
+ requiredFields : ['name', 'email', 'comment']
+ transforms:
+ email : md5
+ generatedFields:
+ date:
+ type : "date"
+ options:
+ format : "iso8601"
+ reCaptcha:
+ enabled: true
+ siteKey: "6LeGeTgUAAAAAAqVrfTwox1kJQFdWl-mLzKasV0v"
+ secret: "hsGjWtWHR4HK4pT7cUsWTArJdZDxxE2pkdg/ArwCguqYQrhuubjj3RS9C5qa8xu4cx/Y9EwHwAMEeXPCZbLR9eW1K9LshissvNcYFfC/b8KKb4deH4V1+oqJEk/JcoK6jp6Rr2nZV4rjDP9M7nunC3WR5UGwMIYb8kKhur9pAic="
+```
+
+
+
### Google Analytics
To add Google Analytics, simply sign up to [Google Analytics](http://www.google.com/analytics/) to obtain your Google Tracking ID, and add this tracking ID to the `googleAnalytics` parameter in `config.toml`.