Skip to content

Instantly share code, notes, and snippets.

@sskylar
Last active May 23, 2016 21:49
Show Gist options
  • Save sskylar/4a782de7c8d080cf5db6 to your computer and use it in GitHub Desktop.
Save sskylar/4a782de7c8d080cf5db6 to your computer and use it in GitHub Desktop.
Apply defaults to documents in a Jekyll collection
defaults:
-
scope:
path: "" # an empty string here means all files
type: "my_collection" # applies defaults only to documents in this collection (e.g. "posts")
values:
layout: "default"
foo: "bar" # any metadata fields can go here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment