Skip to content

Commit

Permalink
Added noindex to non-content pages
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemcgregor committed May 3, 2017
1 parent 5f3bcda commit 595dd53
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width initial-scale=1" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
{% if page.robots %}
<meta name="robots" content="{{ page.robots }}">
{% endif %}

<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | remove: '<p>' | remove: '</p>' }}{% else %}{{ site.description }}{% endif %}">
Expand Down
3 changes: 2 additions & 1 deletion categories.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
layout: categories
title: Categories
permalink: /categories/
---
robots: noindex
---
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: default
robots: noindex
---

<div class="main-post-list">
Expand All @@ -21,4 +22,4 @@ <h2 class="post-list__post-title post-title"><a href="{{ site.baseurl }}{{ post.
{% include pagination.html %}
{% endif %}

</div>
</div>
3 changes: 2 additions & 1 deletion tags.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
layout: tags
title: Tags
permalink: /tags/
---
robots: noindex
---

0 comments on commit 595dd53

Please sign in to comment.