Skip to content

Commit

Permalink
Added no-index
Browse files Browse the repository at this point in the history
Search bots will want to index the canonical page not the redirect one, tell them to ignore this page (but still follow the link)
  • Loading branch information
lukemcgregor authored May 3, 2017
1 parent 3ee2e27 commit efddde5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/jekyll-redirect-from/redirect.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<title>Redirecting&hellip;</title>
<link rel="canonical" href="{{ page.redirect.to }}">
<meta http-equiv="refresh" content="0; url={{ page.redirect.to }}">
<meta name="robots" content="noindex">
<h1>Redirecting…</h1>
<a href="{{ page.redirect.to }}">Click here if you are not redirected.</a>
<script>location="{{ page.redirect.to }}"</script>
Expand Down

0 comments on commit efddde5

Please sign in to comment.