mirror of
https://github.com/discourse/discourse.git
synced 2026-08-04 18:33:28 -05:00
FEATURE: add short_site_description setting to be included in title tag on homepage
This commit is contained in:
@@ -33,7 +33,11 @@ class CategoriesController < ApplicationController
|
||||
)
|
||||
@category_list.draft = Draft.get(current_user, Draft::NEW_TOPIC, @category_list.draft_sequence) if current_user
|
||||
|
||||
@title = "#{I18n.t('js.filters.categories.title')} - #{SiteSetting.title}" unless category_options[:is_homepage]
|
||||
if category_options[:is_homepage] && SiteSetting.short_site_description.present?
|
||||
@title = "#{SiteSetting.title} - #{SiteSetting.short_site_description}"
|
||||
elsif !category_options[:is_homepage]
|
||||
@title = "#{I18n.t('js.filters.categories.title')} - #{SiteSetting.title}"
|
||||
end
|
||||
|
||||
respond_to do |format|
|
||||
format.html do
|
||||
|
||||
@@ -107,6 +107,8 @@ class ListController < ApplicationController
|
||||
@title = I18n.t('js.filters.with_topics', filter: filter_title)
|
||||
end
|
||||
@title << " - #{SiteSetting.title}"
|
||||
elsif (filter.to_s == current_homepage) && SiteSetting.short_site_description.present?
|
||||
@title = "#{SiteSetting.title} - #{SiteSetting.short_site_description}"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user