Skip to content

Commit

Permalink
Fix landing pages generation
Browse files Browse the repository at this point in the history
There was a bug in the way we generated the destination path of the
page, it was only considering characters names as part of the original
file name, so files like _landing_pages/kong-entities.yaml didn't work.
  • Loading branch information
fabianrbz committed Jul 18, 2024
1 parent 5317eed commit 3ca2784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/_plugins/generators/landing_page/page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def initialize(site, file)
private

def output_path(file)
file.sub(@site.source, @site.dest).sub(%r{/_landing_pages/([\w/]+)\.yaml$}, '/\1/')
file.sub(@site.source, @site.dest).sub(%r{/_landing_pages/(.+)\.yaml$}, '/\1/')
end
end
end
Expand Down

0 comments on commit 3ca2784

Please sign in to comment.