Created
October 21, 2016 20:02
-
-
Save hswolff/a2d29940a7259476620e6cc80850a734 to your computer and use it in GitHub Desktop.
Diff of _config from Yarn 1.x to Reptar 2.0.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
path: | |
source: ./ | |
destination: ./_site | |
plugins: ./_plugins | |
themes: ./_themes | |
# Reptar now has support for data files! | |
+ data: ./_data | |
file: | |
# Support for File defaults has been added! | |
# These are optional settings however it's mostly moving | |
# configuration that was on the `collections` field before. | |
+ defaults: | |
+ - | |
+ scope: | |
+ # Any file in this path will have the default values applied. | |
+ path: ./ | |
+ values: | |
+ template: page | |
+ permalink: /:title/ | |
+ - | |
+ scope: | |
+ # Any file in this path will have the default values applied. | |
+ # Because this path is more specific it will over-write the previous | |
+ # defaults. | |
+ path: ./_posts | |
+ values: | |
+ template: post | |
+ permalink: /:title/ | |
+ - | |
+ scope: | |
+ # Any file with this matching metadata will have the default values applied. | |
+ metadata: | |
+ draft: true | |
+ values: | |
+ template: draft | |
# Filter settings were moved to under `file`. | |
+ filters: | |
+ metadata: | |
+ draft: true | |
+ future_date: | |
+ key: date | |
collections: | |
# These settings are now better handled as a File default. | |
- default: | |
- path: ./ | |
- template: page | |
# Static collections no longer exist. | |
- images: | |
- static: true | |
post: | |
path: ./_posts | |
# Moved from being under `pagination`. | |
+ template: index | |
# Moved from being under `pagination`. | |
+ page_size: 6 | |
# Permalink is removed. | |
- permalink: /:title/ | |
# Filter is moved to `file`. | |
- filter: | |
- metadata: | |
- draft: true | |
- future_date: | |
- key: date | |
# Renamed. | |
- pagination: | |
+ permalink: | |
# Moved up one level. | |
- template: index | |
- size: 6 | |
# Renamed | |
- permalink_index: / | |
+ index: / | |
# Renamed | |
- permalink_page: /page/:page/ | |
+ page: /page/:page/ | |
# Moved the follow top level properties to new top level `markdown`. | |
-markdown_extension: | |
- - md | |
-markdown: remarkable | |
-highlighter: highlight.js | |
-remarkable: | |
- preset: 'commonmark' | |
- highlight: true | |
+markdown: | |
+ extensions: | |
+ - md | |
+ options: | |
+ preset: 'commonmark' | |
+ highlight: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment