@ -3,5 +3,6 @@
"description": "Choose what page is shown when users navigate to the root URL of your forum.",
"home-page-route": "Home Page Route",
"custom-route": "Custom Route",
"allow-user-home-pages": "Allow User Home Pages"
"allow-user-home-pages": "Allow User Home Pages",
"home-page-title": "Title of the home page (default \"Home\")"
}
@ -33,7 +33,7 @@ categoriesController.list = function (req, res, next) {
},
function () {
var data = {
title: '[[pages:home]]',
title: meta.config.homePageTitle || '[[pages:home]]',
categories: categoryData,
};
@ -45,7 +45,7 @@ popularController.get = function (req, res, next) {
function (topics) {
topics: topics,
'feeds:disableRSS': parseInt(meta.config['feeds:disableRSS'], 10) === 1,
rssFeedUrl: nconf.get('relative_path') + '/popular/' + (req.params.term || 'daily') + '.rss',
@ -61,7 +61,7 @@ recentController.get = function (req, res, next) {
if (req.uid) {
data.rssFeedUrl += '?uid=' + req.uid + '&token=' + rssToken;
data.title = '[[pages:home]]';
data.title = meta.config.homePageTitle || '[[pages:home]]';
data.filters = helpers.buildFilters('recent', filter);
data.selectedFilter = data.filters.find(function (filter) {
@ -54,7 +54,7 @@ unreadController.get = function (req, res, next) {
}, next);
function (data) {
data.pageCount = Math.max(1, Math.ceil(data.topicCount / settings.topicsPerPage));
data.pagination = pagination.create(page, data.pageCount, req.query);
@ -24,6 +24,9 @@
<span class="mdl-switch__label"><strong>[[admin/general/homepage:allow-user-home-pages]]</strong></span>
</label>
</div>
<br>
<label>[[admin/general/homepage:home-page-title]]</label>
<input class="form-control" type="text" data-field="homePageTitle" placeholder="[[pages:home]]">
</form>