From ee683c8cd1d1e9dafbad52b8951d442602eb5a87 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Fri, 27 Mar 2026 04:17:17 +0000 Subject: [PATCH] feat(hugo): replace deprecated cascade._target for Hugo v0.156+ compatibility --- modules/slides/config/_default/hugo.yaml | 2 +- templates/academic-cv/config/_default/hugo.yaml | 2 +- templates/data-science-blog/config/_default/hugo.yaml | 2 +- templates/documentation/config/_default/hugo.yaml | 4 ++-- templates/startup-landing-page/config/_default/hugo.yaml | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/slides/config/_default/hugo.yaml b/modules/slides/config/_default/hugo.yaml index c43e4ba2..1a56c9e0 100644 --- a/modules/slides/config/_default/hugo.yaml +++ b/modules/slides/config/_default/hugo.yaml @@ -14,7 +14,7 @@ outputFormats: path: present cascade: - - _target: + - target: path: "/slides/**" kind: "page" outputs: diff --git a/templates/academic-cv/config/_default/hugo.yaml b/templates/academic-cv/config/_default/hugo.yaml index 5767523f..e0f02869 100644 --- a/templates/academic-cv/config/_default/hugo.yaml +++ b/templates/academic-cv/config/_default/hugo.yaml @@ -22,7 +22,7 @@ removePathAccents: true ############################ cascade: - - _target: + - target: path: /slides/** kind: page outputs: [HTML, present] diff --git a/templates/data-science-blog/config/_default/hugo.yaml b/templates/data-science-blog/config/_default/hugo.yaml index 47ef43d0..1e3a8646 100644 --- a/templates/data-science-blog/config/_default/hugo.yaml +++ b/templates/data-science-blog/config/_default/hugo.yaml @@ -13,7 +13,7 @@ baseURL: 'https://example.com/' # Website URL cascade: # Blog post options - - _target: + - target: path: /blog/** kind: page pager: true diff --git a/templates/documentation/config/_default/hugo.yaml b/templates/documentation/config/_default/hugo.yaml index f6a1b581..052a5fb0 100644 --- a/templates/documentation/config/_default/hugo.yaml +++ b/templates/documentation/config/_default/hugo.yaml @@ -13,7 +13,7 @@ baseURL: 'https://example.com/' # Website URL cascade: # Docs folder options - - _target: + - target: path: /docs/** editable: true show_breadcrumb: true @@ -22,7 +22,7 @@ cascade: # Show date modified at end of content show_date_updated: true # Blog post options - - _target: + - target: path: /blog/** kind: page pager: true diff --git a/templates/startup-landing-page/config/_default/hugo.yaml b/templates/startup-landing-page/config/_default/hugo.yaml index c3cb1481..0b407d3a 100644 --- a/templates/startup-landing-page/config/_default/hugo.yaml +++ b/templates/startup-landing-page/config/_default/hugo.yaml @@ -13,7 +13,7 @@ baseURL: 'https://example.com/' # Website URL cascade: # Blog post options - - _target: + - target: path: /blog/** kind: page pager: true @@ -30,7 +30,7 @@ cascade: navbar: enable: true # Blog section options - - _target: + - target: path: /blog/* kind: section # Set the listing view