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-05-03 22:06:53 +0300
committerMarcia Ramos <virtua.creative@gmail.com>2018-05-03 22:06:53 +0300
commit67d0d3146dfada1afc058023ec4d379942e468a3 (patch)
treea736ed8cee289f4c4ed7abda3263f61ffd9cc950 /layouts
parent8df29aba5c183d55e07a7c869de7f85b0931f29c (diff)
parentad63c1a8ca1a08f241959277c35f75eeea4284c6 (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.html7
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>