FEATURE: Add site description for the webmanifest (#12217)

This commit is contained in:
Rafael dos Santos Silva 2021-02-25 18:23:19 -03:00 committed by GitHub
parent fff8a24f2b
commit 6569449ea4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -44,6 +44,7 @@ class MetadataController < ApplicationController
manifest = {
name: SiteSetting.title,
short_name: SiteSetting.short_title.presence || SiteSetting.title.truncate(12, separator: ' ', omission: ''),
description: SiteSetting.site_description,
display: display,
start_url: Discourse.base_path.present? ? "#{Discourse.base_path}/" : '.',
background_color: "##{ColorScheme.hex_for_name('secondary', scheme_id)}",