Skip to content

Instantly share code, notes, and snippets.

@hswolff
Created October 21, 2016 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hswolff/a2d29940a7259476620e6cc80850a734 to your computer and use it in GitHub Desktop.
Save hswolff/a2d29940a7259476620e6cc80850a734 to your computer and use it in GitHub Desktop.
Diff of _config from Yarn 1.x to Reptar 2.0.0
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