diff options
author | Marcia Ramos <virtua.creative@gmail.com> | 2018-01-30 17:12:35 +0300 |
---|---|---|
committer | Marcia Ramos <virtua.creative@gmail.com> | 2018-01-30 17:12:35 +0300 |
commit | f7854e2d63fc05b72d05455c1da15dec5e244097 (patch) | |
tree | fcfa123891e4a05580c71af0920179fde1cc78c7 /layouts | |
parent | 600dc10b0005cb5fcdd06fb5cd08a25a786a6b79 (diff) |
add meta description
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/head.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/layouts/head.html b/layouts/head.html index bf6ac6b2..0df161e6 100644 --- a/layouts/head.html +++ b/layouts/head.html @@ -1,7 +1,11 @@ <head> <meta charset="utf-8"> <title><%= @item.key?(:title) ? "#{item[:title]} - GitLab Documentation" : "GitLab Documentation" %></title> - <meta name="description" content="Documentation for GitLab Community Edition, GitLab Enterprise Edition, Omnibus GitLab, and GitLab Runner."> + <% if @item[:description] %> + <meta name="description" content="<%= @item[:description] %>"> + <% else %> + <meta name="description" content="Documentation for GitLab Community Edition, GitLab Enterprise Edition, Omnibus GitLab, and GitLab Runner."> + <% end %> <link rel="stylesheet" href="<%= @items['/assets/stylesheets/bootstrap.min.*'].path %>"> <link rel="stylesheet" href="<%= @items['/assets/stylesheets/font-awesome.min.*'].path %>"> <link rel="stylesheet" href="<%= @items['/assets/stylesheets/stylesheet.*'].path %>"> |