Skip to content

Commit

Permalink
remove return from sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Aug 31, 2016
1 parent a2e51cf commit c644a59
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions config/sitemap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@
add project_versions_path(project.to_param), :lastmod => project.updated_at, :priority => 0.4

if project.versions_count.zero? && project.github_repository_id.present?
return if project.github_repository.nil?
add project_tags_path(project.to_param), :lastmod => project.updated_at, :priority => 0.4
if project.github_repository.present?
add project_tags_path(project.to_param), :lastmod => project.updated_at, :priority => 0.4

project.github_tags.published.find_each do |tag|
add version_path(project.to_param.merge(number: tag.name)), :lastmod => project.updated_at
project.github_tags.published.find_each do |tag|
add version_path(project.to_param.merge(number: tag.name)), :lastmod => project.updated_at
end
end
end
end
Expand Down

0 comments on commit c644a59

Please sign in to comment.