Skip to content

Commit ba6dd41

Browse files
committed
fix
1 parent 49e299d commit ba6dd41

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/models/education/program.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,9 @@ def best_featured_image(fallback: true)
134134
end
135135

136136
def git_path(website)
137-
Static.clean_path("#{git_path_content_prefix(website)}programs/#{path}/_index.html") if for_website?(website)
137+
return unless for_website?(website)
138+
clean_path = Static.clean_path "#{git_path_content_prefix(website)}programs/#{path}/"
139+
"#{clean_path}_index.html"
138140
end
139141

140142
def path_in_website(website)

0 commit comments

Comments
 (0)