Skip to content

Commit 2e80c48

Browse files
authored
fix(config): add defaults
1 parent ba957ec commit 2e80c48

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

_config.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,30 @@ collections:
3838
output: true
3939
permalink: /:path/
4040

41+
defaults:
42+
# Theme defaults.
43+
# MUST be duplicated from theme's _config.yml
44+
# (does not get inherited, unlike the collections hash)
45+
- scope:
46+
path: ""
47+
values:
48+
layout: default
49+
- scope:
50+
path: _posts
51+
type: posts
52+
values:
53+
layout: post
54+
- scope:
55+
path: _software
56+
type: software
57+
values:
58+
layout: product
59+
- scope:
60+
path: _specs
61+
type: specs
62+
values:
63+
layout: spec
64+
4165
# These are required for the theme to work:
4266

4367
theme: jekyll-theme-open-project

0 commit comments

Comments
 (0)