From c6d397c57537db4990c5a48aaa4e3d628137c147 Mon Sep 17 00:00:00 2001 From: Marcia Ramos Date: Tue, 3 Apr 2018 17:52:24 +0000 Subject: Metadata improvements --- layouts/default.html | 3 ++- layouts/head.html | 54 ++++--------------------------------------- layouts/home.html | 11 ++++++++- layouts/instantsearch.html | 3 ++- layouts/schema-microdata.html | 51 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 70 insertions(+), 52 deletions(-) create mode 100644 layouts/schema-microdata.html (limited to 'layouts') diff --git a/layouts/default.html b/layouts/default.html index 3b2e22bc..730df5be 100644 --- a/layouts/default.html +++ b/layouts/default.html @@ -1,5 +1,5 @@ - + <%= render '/head.*' %> <%= render '/canonical_urls.*' %> @@ -67,5 +67,6 @@ <%= render '/docsearch.*' %> <%= render '/analytics.*' %> <%= render '/https_redirect.*' %> + <%= render '/schema-microdata.*' %> diff --git a/layouts/head.html b/layouts/head.html index 4ce4d555..3c336ee1 100644 --- a/layouts/head.html +++ b/layouts/head.html @@ -1,5 +1,9 @@ -<%= @item.key?(:title) ? "#{item[:title]} - GitLab Documentation" : "GitLab Documentation" %> +<% if @item.identifier.to_s.split('/').count == 2 %> + <%= @item[:title] %> +<% else %> + <%= @item.key?(:title) ? "#{item[:title]} | GitLab" : "GitLab Documentation" %> +<% end %> <% if @item[:description] %> <% else %> @@ -22,51 +26,3 @@ - - diff --git a/layouts/home.html b/layouts/home.html index 9f54923e..8d8ff2f9 100644 --- a/layouts/home.html +++ b/layouts/home.html @@ -1,5 +1,5 @@ - + <%= render '/head.*' %> @@ -16,5 +16,14 @@ <%= render '/docsearch.*' %> <%= render '/analytics.*' %> <%= render '/https_redirect.*' %> + <%= render '/schema-microdata.*' %> + diff --git a/layouts/instantsearch.html b/layouts/instantsearch.html index ca5e9a15..b07c9264 100644 --- a/layouts/instantsearch.html +++ b/layouts/instantsearch.html @@ -1,5 +1,5 @@ - + <%= render '/head.*' %> @@ -25,5 +25,6 @@ <%= render '/footer.*' %> <%= render '/analytics.*' %> <%= render '/https_redirect.*' %> + <%= render '/schema-microdata.*' %> diff --git a/layouts/schema-microdata.html b/layouts/schema-microdata.html new file mode 100644 index 00000000..6b7f09ac --- /dev/null +++ b/layouts/schema-microdata.html @@ -0,0 +1,51 @@ + + -- cgit v1.2.3