Skip to content

Commit 9dbf13d

Browse files
committed
Apply :rep to every item
This matches the new `nanoc-conref-fs` style, allowing for the potential of multiple reps in the future.
1 parent 329f5a4 commit 9dbf13d

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

Rules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
preprocess do
99
create_individual_blog_pages
1010
generate_redirects(config[:redirects])
11+
@items.each do |item|
12+
ConrefFS.apply_attributes(@config, item, :default)
13+
end
1114
end
1215

1316
passthrough '/CNAME'

nanoc.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,35 +24,47 @@ data_variables:
2424
-
2525
scope:
2626
path: ""
27+
reps:
28+
- :default
2729
values:
2830
version: "dotcom"
2931
-
3032
scope:
3133
path: "enterprise-(?!backports)"
34+
reps:
35+
- :default
3236
values:
3337
version: *latest_enterprise_version
3438

3539
page_variables:
3640
-
3741
scope:
3842
path: ''
43+
reps:
44+
- :default
3945
values:
4046
version: 'dotcom'
4147
-
4248
scope:
4349
path: 'changes'
50+
reps:
51+
- :default
4452
# exclude all blog posts from search
4553
values:
4654
hide_from_search: true
4755
-
4856
scope:
4957
path: 'integrations-directory'
58+
reps:
59+
- :default
5060
# exclude integrations-directory from search
5161
values:
5262
hide_from_search: true
5363
-
5464
scope:
5565
path: "enterprise"
66+
reps:
67+
- :default
5668
values:
5769
version: *latest_enterprise_version
5870
is_enterprise_help: "true"
@@ -126,3 +138,5 @@ data_sources:
126138
layouts_root: /
127139
encoding: utf-8
128140
identifier_type: full
141+
reps:
142+
- :default

0 commit comments

Comments
 (0)