Merge pull request #117 from hasheddan/noindex-move

Do not index old documentation versions
This commit is contained in:
Daniel Mangum 2021-08-09 10:56:34 -04:00 committed by GitHub
commit bbebf01a6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -16,10 +16,6 @@
<meta name="twitter:description" content="Compose cloud infrastructure and services into custom platform APIs" />
<meta name="twitter:image:src" content="https://crossplane.io/images/twitter-card_400x400.jpg" />
{% if currentVersion != latestVersion%}
<meta name="robots" content="noindex">
{% endif %}
{% include favicon.html %}
<link rel="stylesheet" href="{{ "/css/main.css" | relative_url }}" />

View File

@ -28,6 +28,11 @@
<meta name="twitter:description" content="Compose cloud infrastructure and services into custom platform APIs" />
<meta name="twitter:image:src" content="https://crossplane.io/images/twitter-card_400x400.jpg" />
{% if currentVersion != latestVersion %}
<!-- Do not index old documentation -->
<meta name="robots" content="noindex">
{% endif %}
{% include favicon.html %}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>