We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49e299d commit ba6dd41Copy full SHA for ba6dd41
1 file changed
app/models/education/program.rb
@@ -134,7 +134,9 @@ def best_featured_image(fallback: true)
134
end
135
136
def git_path(website)
137
- Static.clean_path("#{git_path_content_prefix(website)}programs/#{path}/_index.html") if for_website?(website)
+ return unless for_website?(website)
138
+ clean_path = Static.clean_path "#{git_path_content_prefix(website)}programs/#{path}/"
139
+ "#{clean_path}_index.html"
140
141
142
def path_in_website(website)
0 commit comments