aboutsummaryrefslogtreecommitdiff
path: root/app/layout/layout.phtml
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2015-10-24 23:47:13 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2015-10-25 00:01:13 +0200
commit02a3cb4652d4c87ec3202d39f6cd8a240a1a7373 (patch)
treebece06ef3d5a7b65804eebaf611c62de465831f8 /app/layout/layout.phtml
parent0202fd19ed310fc5ae6e098348ea02b4d43b82d7 (diff)
Config allow robots
https://github.com/FreshRSS/FreshRSS/issues/938
Diffstat (limited to 'app/layout/layout.phtml')
-rw-r--r--app/layout/layout.phtml4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/layout/layout.phtml b/app/layout/layout.phtml
index 083ffd4b3..d7e9d115b 100644
--- a/app/layout/layout.phtml
+++ b/app/layout/layout.phtml
@@ -36,7 +36,11 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="apple-mobile-web-app-title" content="<?php echo FreshRSS_Context::$system_conf->title; ?>">
<meta name="msapplication-TileColor" content="#FFF" />
+<?php if (FreshRSS_Context::$system_conf->allow_robots) { ?>
+ <meta name="description" content="<?php echo htmlspecialchars(FreshRSS_Context::$name . ' | ' . FreshRSS_Context::$description, ENT_NOQUOTES, 'UTF-8'); ?>" />
+<?php } else { ?>
<meta name="robots" content="noindex,nofollow" />
+<?php } ?>
</head>
<body class="<?php echo Minz_Request::param('output', 'normal'); ?>">
<?php $this->partial('header'); ?>