Skip to content

Commit d061e53

Browse files
committed
dont set canonical tag for 404 page
Signed-off-by: Jess Frazelle <[email protected]>
1 parent 67df9a1 commit d061e53

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

404.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
layout: docwithnav
33
title: 404 Error!
44
permalink: /404.html
5+
no_canonical: true
56
---
67

78
<script src="/js/redirects.js"></script>

_includes/head-header.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<head>
33
<meta charset="utf-8">
44
<meta name="viewport" content="width=device-width, initial-scale=1">
5-
<link rel="canonical" href="http://kubernetes.io{{page.url}}" />
5+
{% if !page.no_canonical %}<link rel="canonical" href="http://kubernetes.io{{page.url}}" />{% endif %}
66
<link rel="shortcut icon" type="image/png" href="/images/favicon.png">
77
<link href='https://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,400italic,500,500italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'>
88
<link rel="stylesheet" href='https://fonts.googleapis.com/css?family=Roboto+Mono' type='text/css'>

0 commit comments

Comments
 (0)