Commits

Nick Freear committed bc325db

Adding robots.txt robot-exclusion file, adding robots <meta> config..

* Plus, improving the <title> in layout_ci template-view

  • Participants
  • Parent commits 2b5cd54

Comments (0)

Files changed (2)

application/config/trackoer_config.dist.php

 
 /*
 |--------------------------------------------------------------------------
+| If missing or FALSE, a robots exclusion <meta> tag is set.
+*/
+#$config['robots'] = TRUE;
+
+
+/*
+|--------------------------------------------------------------------------
 | Web proxy.
 */
 #putenv('http_proxy=wwwcache.open.ac.uk:80');

application/views/site_layout/layout_ci.php

 
   $with_unit_tests = isset($with_unit_tests) && $with_unit_tests;
   $ggl_font = $this->config->item('google_font');
+  $robots = $this->config->item('robots');
 
 ?>
-<!doctype html><html lang="en"><meta charset="utf-8" /><title>Track OER - rapid innovation alpha</title>
+<!doctype html><html lang="en"><meta charset="utf-8" /><title>Track OER &lsaquo; Analytics for open educational resources - OER &rsaquo;<?php /*rapid innovation alpha*/ ?></title>
 <!--[if lt IE 9]>
 <script src="http://html5shim.googlecode.com/svn/trunk/html5-els.js"></script>
 <![endif]-->
 
 <meta name="viewport" content="width=device-width, initial-scale=1" />
+<?php if (!$robots): ?>
 <meta name="ROBOTS" content="noindex,nofollow" />
+<?php endif; ?>
 
 <link rel=alternate type="application/rss+xml" title="Track OER project blog RSS feed" href="<?php echo $feed_url ?>" />
 <?php if (isset($oembed_url)): ?>