Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 58927aa

Browse files
committed
Rename deprecated cascade._target to cascade.target in tests
1 parent ce009e3 commit 58927aa

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

hugolib/cascade_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,11 @@ disableKinds = ['rss','sitemap','taxonomy','term', 'home']
185185
---
186186
title: Home
187187
cascade:
188-
- _target:
188+
- target:
189189
path: "**"
190190
params:
191191
background: yosemite.jpg
192-
- _target:
192+
- target:
193193
params:
194194
background: goldenbridge.jpg
195195
---

hugolib/hugo_smoke_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,11 +431,11 @@ Home Content.
431431
---
432432
title: Hjem
433433
cascade:
434-
- _target:
434+
- target:
435435
kind: page
436436
path: /posts/**
437437
background: post.jpg
438-
- _target:
438+
- target:
439439
kind: term
440440
background: term.jpg
441441
---

hugolib/params_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ background = 'yosemite.jpg'
3333
[cascade.params]
3434
a = "home-a"
3535
b = "home-b"
36-
[cascade._target]
36+
[cascade.target]
3737
kind = 'page'
3838
+++
3939
-- content/p1.md --

hugolib/rebuild_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@ P5 Content.
926926
-- content/myothersect/_index.md --
927927
---
928928
cascade:
929-
- _target:
929+
- target:
930930
cascadeparam: "cascadevalue"
931931
---
932932
-- content/myothersect/sub/_index.md --

0 commit comments

Comments
 (0)