diff options
author | Marcia Ramos <virtua.creative@gmail.com> | 2018-03-19 20:20:02 +0300 |
---|---|---|
committer | Marcia Ramos <virtua.creative@gmail.com> | 2018-03-19 20:20:02 +0300 |
commit | 8fb03cce3565c3454eacabbbdfbf0478bdcbaf18 (patch) | |
tree | ee1617461dbc0b8912f1bd55adb0ae952668da0a /layouts | |
parent | 9ccc6234db3aad99e96845033b1544862fca642e (diff) |
include the links in the file layout directly
makes it more flexible, to be adjusted according to the website files.
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/404.html | 2 | ||||
-rw-r--r-- | layouts/archives.html | 1 | ||||
-rw-r--r-- | layouts/default.html | 1 | ||||
-rw-r--r-- | layouts/head.html | 1 | ||||
-rw-r--r-- | layouts/home.html | 1 | ||||
-rw-r--r-- | layouts/instantsearch.html | 1 |
6 files changed, 6 insertions, 1 deletions
diff --git a/layouts/404.html b/layouts/404.html index a211920b..89b7ba1f 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -2,6 +2,8 @@ <html lang="en"> <head> <%= render '/head.*' %> + <meta name="robots" content="noindex"> + <link rel="canonical" href="<%= @config[:base_url] %>/404.html"> <link rel="stylesheet" href="<%= @items['/assets/stylesheets/404.*'].path %>"> </head> <body> diff --git a/layouts/archives.html b/layouts/archives.html index 7ffb8cca..a77bf497 100644 --- a/layouts/archives.html +++ b/layouts/archives.html @@ -2,6 +2,7 @@ <html lang="en"> <head> <%= render '/head.*' %> + <link rel="canonical" href="<%= @config[:base_url] %>/archives.html"> </head> <body> <%= render '/header.*' %> diff --git a/layouts/default.html b/layouts/default.html index bca75f9a..d09455d9 100644 --- a/layouts/default.html +++ b/layouts/default.html @@ -2,6 +2,7 @@ <html lang="en"> <head> <%= render '/head.*' %> +<%= render '/canonical_urls.*' %> </head> <body> <%= render '/header.*' %> diff --git a/layouts/head.html b/layouts/head.html index c94993da..09c8b5c9 100644 --- a/layouts/head.html +++ b/layouts/head.html @@ -5,7 +5,6 @@ <% else %> <meta name="description" content="Documentation for GitLab Community Edition, GitLab Enterprise Edition, Omnibus GitLab, and GitLab Runner."> <% end %> -<%= render '/canonical_urls.*' %> <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 %>"> diff --git a/layouts/home.html b/layouts/home.html index 3c33a9f9..6d1f1472 100644 --- a/layouts/home.html +++ b/layouts/home.html @@ -2,6 +2,7 @@ <html lang="en"> <head> <%= render '/head.*' %> + <link rel="canonical" href="<%= @config[:base_url] %>/"> </head> <body class="landing"> <div class="landing-header"> diff --git a/layouts/instantsearch.html b/layouts/instantsearch.html index 17566a96..58da4541 100644 --- a/layouts/instantsearch.html +++ b/layouts/instantsearch.html @@ -2,6 +2,7 @@ <html lang="en"> <head> <%= render '/head.*' %> + <link rel="canonical" href="<%= @config[:base_url] %>/search/"> <!-- instantsearch --> <link rel="stylesheet" href="<%= @items['/assets/stylesheets/instantsearch.*'].path %>"> <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/instantsearch.js@2.5.0/dist/instantsearch-theme-algolia.min.css"> |