From 4e44f3c5db705ffba793e7821fe06c3a0cd46465 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Tue, 29 Nov 2016 08:44:43 -0500 Subject: [PATCH] Add Staticman default `path` - Close #683 --- _config.yml | 2 +- docs/_docs/05-configuration.md | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/_config.yml b/_config.yml index 1921a0cb8e88..3bb0c5a5316a 100644 --- a/_config.yml +++ b/_config.yml @@ -35,7 +35,7 @@ staticman: filename : comment-{@timestamp} format : "yml" moderation : true - path : "docs/_data/comments/{options.slug}" + path : "docs/_data/comments/{options.slug}" # "/_data/comments/{options.slug}" (default) requiredFields : ['name', 'email', 'message'] transforms: email : "md5" diff --git a/docs/_docs/05-configuration.md b/docs/_docs/05-configuration.md index 5cc84e452013..dd86ab1ecbe3 100644 --- a/docs/_docs/05-configuration.md +++ b/docs/_docs/05-configuration.md @@ -2,7 +2,7 @@ title: "Configuration" permalink: /docs/configuration/ excerpt: "Settings for configuring and customizing the theme." -modified: 2016-11-03T10:42:01-04:00 +modified: 2016-11-29T08:44:22-05:00 --- Settings that affect your entire site can be changed in [Jekyll's configuration file](https://jekyllrb.com/docs/configuration/): `_config.yml`, found in the root of your project. If you don't have this file you'll need to copy or create one using the theme's [default `_config.yml`](https://github.com/mmistakes/minimal-mistakes/blob/master/_config.yml) as a base. @@ -206,7 +206,6 @@ comments: server : # meta.discourse.org ``` - ##### Facebook Comments To enable Facebook Comments choose how many comments you'd like visible per post and the color scheme of the widget. @@ -231,7 +230,7 @@ Transform user comments into `_data` files that live inside of your GitHub repos ###### Configure Staticman -Default settings have been provided in `_config.yml`. The important ones to set are `provider: "staticman"` and `branch`. View the [full list of configurations](https://github.com/eduardoboucas/staticman#jekyll-configuration). +Default settings have been provided in `_config.yml`. The important ones to set are `provider: "staticman"`, `branch`, and `path`. View the [full list of configurations](https://github.com/eduardoboucas/staticman#jekyll-configuration). **Branch setting:** This is the branch comment files will be sent to via pull requests. If you host your site on GitHub Pages it will likely be `master` unless your repo is setup as a project --- use `gh-pages` in that case. {: .notice--info}