From 8277d32c0bd5c38c0fcbe06612e4b3f5a12d677e Mon Sep 17 00:00:00 2001 From: jklingen Date: Fri, 3 Apr 2015 18:30:36 +0200 Subject: [PATCH] Allow page-specific robots meta directive --- _config.yml | 3 +++ _includes/head.html | 5 ++--- robots.txt | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/_config.yml b/_config.yml index e6fc1e966..f5d4d1442 100644 --- a/_config.yml +++ b/_config.yml @@ -11,6 +11,9 @@ facebook: Greenshot.Tool googleplus: 108405649004966849465 openhub_project: greenshot +# TODO change to index,follow before going live, also remove robots.txt +metarobots: noindex, nofollow + collections: faqs: output: true diff --git a/_includes/head.html b/_includes/head.html index ae48968a3..270941fa5 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -1,8 +1,7 @@ - - + {% if page.metatitle %}{{ page.metatitle }}{% else if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %} @@ -14,7 +13,7 @@ - + diff --git a/robots.txt b/robots.txt index a07627af3..251504212 100644 --- a/robots.txt +++ b/robots.txt @@ -1,3 +1,3 @@ -# TODO remove before publication on getgreenshot.org, also meta header in head.html +# TODO remove before publication on getgreenshot.org, also change meta directive in _config.yml User-agent: * Disallow: /