aboutsummaryrefslogtreecommitdiff
path: root/template/page.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'template/page.phtml')
-rw-r--r--template/page.phtml6
1 files changed, 5 insertions, 1 deletions
diff --git a/template/page.phtml b/template/page.phtml
index 3969c12..b62f372 100644
--- a/template/page.phtml
+++ b/template/page.phtml
@@ -16,7 +16,11 @@
<title><?=h($title)?> – <?=h($conference->getTitle())?> Streaming</title>
- <meta name="robots" content="index,follow" />
+ <? if($conference->isPreviewEnabled()): ?>
+ <meta name="robots" content="noindex,nofollow" />
+ <? else: ?>
+ <meta name="robots" content="index,follow" />
+ <? endif ?>
<? if(isset($refresh)): ?>
<meta http-equiv="refresh" content="<?=h($refresh)?>; URL=<?=h($canonicalurl)?>" />