7 Commits

Author SHA1 Message Date
Caleb
d10f97f561 Allow different beginning and ending frontmatter delimiters. 2018-02-21 17:01:13 -05:00
Pedro Duarte
49894d9fd9 Add label_singular to collection config (#1086) 2018-02-19 09:00:52 -08:00
Swieckowski
afce6abbc2 Custom delimiters (#1064)
* frontmatter functions now exported as curried constructors

* changed formats.js to accomodate frontmatter.js changes

* can only use custom delimiters if format is specified

* reverting changes

* updated tests to reflect changes

* created tests for custom delimiters

* updated docs to reflect addition of custom delimiter configuration

* formatByExtension no longer takes custom delimiter

* missed some formatByExtension calls

* Edited the docs according to suggestions

* Throws an error if a custom delimiter is set without declaring frontmatter format

* Throws error if custom delimiter set without explicit and proper frontmatter format being declared

* example config file set to proper defaults

* moved frontmatterFormats to formats

* Update .all-contributorsrc

* updated contributions

* Clarify docs
2018-02-08 18:04:42 -07:00
Caleb
756d562c66 Support writing frontmatter in multiple formats (#933)
* Format JSON files.

Currently we store JSON as a single line in files. We should prettify it
like we do the other formats.

* Add output parsers to the frontmatter list.

* Cleanup frontmatter format parser options.

* Support writing frontmatter in TOML and JSON.

Right now we can read TOML or JSON frontmatter by inferring,
but we can only write frontmatter in YAML. This change allows the
frontmatter format to be explicitly set for reading and writing.

* Fix frontmatter formatter.

* Update Frontmatter formatter tests.

* Update frontmatter format docs.
2018-01-29 17:35:36 -05:00
Edward Betts
24307e3c3c Correct spelling mistakes. (#898) 2017-12-11 17:16:24 -08:00
Jessica Parsons
b370929087
Minor docs fixes (#894)
* Update links

Update test-drive and quick-start references
Change relative links to absolute so they work in GitHub repo view

* Regain paragraph margins

Adding back the bottom margin had no effect on landing page, except a 16px legnth increase in the hero and editor sections. Offset by reducing the variable that set their margin/padding by the same amount.
2017-12-07 13:27:33 -08:00
Jessica Parsons
bee768e1e1
Add configuration options doc (#885)
* Add collections options doc
* Move Editorial Workflow page; transfer content to config and architecture docs
2017-12-07 09:52:03 -08:00