Skip to content

Commit

Permalink
Make pages noindex/nofollow if draft or sitemap ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
mikestreety committed Mar 28, 2021
1 parent d35c451 commit a343dc3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/layouts/default.njk
Expand Up @@ -41,6 +41,10 @@
{% endif %}
<meta property="og:description" property="twitter:description" content="{{ intro if intro else description }}">

{% if sitemapIgnore or draft %}
<meta name="robots" content="noindex, nofollow" />
{% endif %}

{% set count = 1 %}

{% if tags %}
Expand Down

0 comments on commit a343dc3

Please sign in to comment.