Skip to content

Commit 4754a39

Browse files
committed
Refactor site 'cascade' configuration for collections
1 parent 5dbf0f1 commit 4754a39

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

config/_default/hugo.yaml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,22 @@ cascade:
1111
draft: true
1212

1313
- _target:
14-
path: '/collections'
15-
# Do not apply the 'collections.html' layout to this page
16-
layout: 'list'
17-
# Do not use the 'permalinks.section.collections' URL pattern for this page
18-
url: 'collections'
19-
20-
- _target:
21-
path: '/collections/*'
22-
# Do not use the 'permalinks.section.collections' URL pattern
23-
url: ':sections[:2]'
14+
path: '/collections{,/**}'
15+
kind: 'section'
16+
outputs:
17+
# Drop 'RSS'
18+
- 'HTML'
2419

2520
- _target:
26-
path: '/collections{,/**}'
21+
path: '/collections/**'
2722
kind: 'section'
2823
# Render a collection sub-section's landing page as a regular page
2924
layout: 'single'
25+
26+
- _target:
27+
path: '/collections/*/**'
28+
kind: 'section'
3029
# Must set the URL here with the '.html' file extension instead of in the
3130
# 'permalinks' site configuration because, since v0.148.0, Hugo no longer
3231
# generates ugly URLs for section pages
3332
url: ':sections[:2]/:sections[last].html'
34-
outputs:
35-
# Drop 'RSS'
36-
- 'HTML'

0 commit comments

Comments
 (0)