Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Read <eread@gitlab.com>2021-06-17 04:49:47 +0300
committerEvan Read <eread@gitlab.com>2021-06-17 04:49:47 +0300
commitf8d0b9f7646e68a9ce8de9cd0799162a1241f8f8 (patch)
treed109706e737ea2b4fcd5544409059d1533814755 /content/index.erb
parentd21dd9df02c8bfccd32182e0e8e624398898277f (diff)
Remove directory check and display topic in list unconditionally
Diffstat (limited to 'content/index.erb')
-rw-r--r--content/index.erb40
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>