diff options
author | Marcia Ramos <virtua.creative@gmail.com> | 2018-05-03 22:06:53 +0300 |
---|---|---|
committer | Marcia Ramos <virtua.creative@gmail.com> | 2018-05-03 22:06:53 +0300 |
commit | 67d0d3146dfada1afc058023ec4d379942e468a3 (patch) | |
tree | a736ed8cee289f4c4ed7abda3263f61ffd9cc950 /layouts | |
parent | 8df29aba5c183d55e07a7c869de7f85b0931f29c (diff) | |
parent | ad63c1a8ca1a08f241959277c35f75eeea4284c6 (diff) |
Merge branch 'schema-webpage' into 'master'
Implement Schema.org Webpage microdata
See merge request gitlab-com/gitlab-docs!261
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/default.html | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/layouts/default.html b/layouts/default.html index 917dbb70..f216f11e 100644 --- a/layouts/default.html +++ b/layouts/default.html @@ -4,7 +4,7 @@ <%= render '/head.*' %> <%= render '/canonical_urls.*' %> </head> -<body> +<body itemscope itemtype="http://schema.org/WebPage"> <%= render '/header.*' %> <div class="wrapper"> <div class="main class js-main-wrapper"> @@ -22,7 +22,7 @@ <div id="doc-nav" class="doc-nav"> </div> <% if @item[:title] %> - <h1 class="article-title"> + <h1 class="article-title" itemprop="name"> <%= @item[:title] %><%= @item[:title_badge] %> </h1> <% end %> @@ -40,7 +40,7 @@ Level: <%= @item[:level] %> </div> <% end %> - <div class="article-content js-article-content"> + <div class="article-content js-article-content" role="main" itemscope itemprop="mainContentOfPage"> <%= yield %> </div> <% if ENV['NANOC_ENV'] == 'production' && ENV['CI_COMMIT_REF_NAME'] == 'master' %> @@ -68,6 +68,5 @@ <%= render '/docsearch.*' %> <%= render '/analytics.*' %> <%= render '/https_redirect.*' %> - <%= render '/schema-microdata.*' %> </body> </html> |