diff --git a/superset/config.py b/superset/config.py index 51b5e91bb..94ad24591 100644 --- a/superset/config.py +++ b/superset/config.py @@ -57,6 +57,17 @@ PACKAGE_DIR = os.path.join(BASE_DIR, "static", "assets") VERSION_INFO_FILE = os.path.join(PACKAGE_DIR, "version_info.json") PACKAGE_JSON_FILE = os.path.join(BASE_DIR, "assets", "package.json") +# Multiple favicons can be specified here. The "href" property +# is mandatory, but "sizes," "type," and "rel" are optional. +# For example: +# { +# "href":path/to/image.png", +# "sizes": "16x16", +# "type": "image/png" +# "rel": "icon" +# }, +FAVICONS = [{"href": "/static/assets/images/favicon.png"}] + def _try_json_readversion(filepath): try: diff --git a/superset/templates/superset/basic.html b/superset/templates/superset/basic.html index 6c1ff626c..922ca0c9f 100644 --- a/superset/templates/superset/basic.html +++ b/superset/templates/superset/basic.html @@ -16,7 +16,11 @@ specific language governing permissions and limitations under the License. #} + {% import 'appbuilder/general/lib.html' as lib %} + +{% set favicons = appbuilder.app.config['FAVICONS'] %} +