From 79696f31adde2a3e0a224294104b19ccc77565cc Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Fri, 7 Oct 2016 22:54:23 +0200 Subject: Meta description option https://github.com/FreshRSS/FreshRSS/issues/1105 --- app/Models/Context.php | 2 ++ data/config.default.php | 3 +++ 2 files changed, 5 insertions(+) diff --git a/app/Models/Context.php b/app/Models/Context.php index 33e65a619..a38b1e0f1 100644 --- a/app/Models/Context.php +++ b/app/Models/Context.php @@ -144,11 +144,13 @@ class FreshRSS_Context { case 'a': self::$current_get['all'] = true; self::$name = _t('index.feed.title'); + self::$description = self::$system_conf->meta_description; self::$get_unread = self::$total_unread; break; case 's': self::$current_get['starred'] = true; self::$name = _t('index.feed.title_fav'); + self::$description = self::$system_conf->meta_description; self::$get_unread = self::$total_starred['unread']; // Update state if favorite is not yet enabled. diff --git a/data/config.default.php b/data/config.default.php index af1482d03..d3cd3bf22 100644 --- a/data/config.default.php +++ b/data/config.default.php @@ -27,6 +27,9 @@ return array( # Title of this FreshRSS instance in the Web user interface. 'title' => 'FreshRSS', + # Meta description used when `allow_robots` is true. + 'meta_description' => '', + # Name of the user that has administration rights. 'default_user' => '_', -- cgit v1.2.3