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:
authorMarcia Ramos <virtua.creative@gmail.com>2018-10-12 17:34:09 +0300
committerMarcia Ramos <virtua.creative@gmail.com>2018-10-12 17:34:09 +0300
commit851ab070e2275032dc6abf56f541b16b62173646 (patch)
tree7ef180c0789ba93be4f1b4a5fa469277827c42e2 /layouts/head.html
parentc59629a16d73a20f3778c9b194c171d625680c23 (diff)
set conditional to add meta no index nofollow from frontmatter
Diffstat (limited to 'layouts/head.html')
-rw-r--r--layouts/head.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/head.html b/layouts/head.html
index 63291657..e99be97c 100644
--- a/layouts/head.html
+++ b/layouts/head.html
@@ -10,6 +10,9 @@
<meta name="description" content="Documentation for GitLab Community Edition, GitLab Enterprise Edition, Omnibus GitLab, and GitLab Runner.">
<% end %>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
+<% if @item[:noindex] %>
+ <meta name="robots" content="noindex nofollow">
+<% end %>
<link rel="stylesheet" href="<%= @items['/assets/stylesheets/bootstrap.min.*'].path %>">
<link rel="stylesheet" href="<%= @items['/assets/stylesheets/stylesheet.*'].path %>">
<link rel="stylesheet" href="<%= @items['/assets/stylesheets/highlight.*'].path %>">