diff options
author | Evan Read <eread@gitlab.com> | 2021-06-17 04:49:47 +0300 |
---|---|---|
committer | Evan Read <eread@gitlab.com> | 2021-06-17 04:49:47 +0300 |
commit | f8d0b9f7646e68a9ce8de9cd0799162a1241f8f8 (patch) | |
tree | d109706e737ea2b4fcd5544409059d1533814755 /content/index.erb | |
parent | d21dd9df02c8bfccd32182e0e8e624398898277f (diff) |
Remove directory check and display topic in list unconditionally
Diffstat (limited to 'content/index.erb')
-rw-r--r-- | content/index.erb | 40 |
1 files changed, 18 insertions, 22 deletions
diff --git a/content/index.erb b/content/index.erb index 12c53ef5..da2c27b5 100644 --- a/content/index.erb +++ b/content/index.erb @@ -114,17 +114,15 @@ title: GitLab Documentation <ul class="text-left"> <% @items['/_data/popular_topics.yaml'][:topics].each do |topic| %> <% product = topic[:url].split('/')[1] %> - <% if Dir.exist?("#{@config[:content_dir]}/#{product}") %> - <% if topic[:description].include? "Omnibus" %> - <li> - <span> - <a href="<%= topic[:url] %>"> - <strong><%= topic[:title] %>: </strong> - <%= topic[:description] %> - </a> - </span> - </li> - <% end %> + <% if topic[:description].include? "Omnibus" %> + <li> + <span> + <a href="<%= topic[:url] %>"> + <strong><%= topic[:title] %>: </strong> + <%= topic[:description] %> + </a> + </span> + </li> <% end %> <% end %> </ul> @@ -140,17 +138,15 @@ title: GitLab Documentation <ul class="text-left"> <% @items['/_data/popular_topics.yaml'][:topics].each do |topic| %> <% product = topic[:url].split('/')[1] %> - <% if Dir.exist?("#{@config[:content_dir]}/#{product}") %> - <% unless topic[:description].include? "Omnibus" %> - <li> - <span> - <a href="<%= topic[:url] %>"> - <strong><%= topic[:title] %>: </strong> - <%= topic[:description] %> - </a> - </span> - </li> - <% end %> + <% unless topic[:description].include? "Omnibus" %> + <li> + <span> + <a href="<%= topic[:url] %>"> + <strong><%= topic[:title] %>: </strong> + <%= topic[:description] %> + </a> + </span> + </li> <% end %> <% end %> </ul> |