85123: WIP: Support for theme-specific head tags

This commit is contained in:
Bruno Roemers
2021-11-23 19:36:49 +01:00
parent a5a91d5139
commit 99a2cf926a
3 changed files with 111 additions and 7 deletions

View File

@@ -292,7 +292,39 @@ export const environment: GlobalConfig = {
{
// The default dspace theme
name: 'dspace'
name: 'dspace',
headTags: [
{
tagName: 'link',
attributes: {
'rel': 'icon',
'href': 'assets/dspace/images/favicons/favicon.ico',
'sizes': 'any',
}
},
{
tagName: 'link',
attributes: {
'rel': 'icon',
'href': 'assets/dspace/images/favicons/favicon.svg',
'type': 'image/svg+xml',
}
},
{
tagName: 'link',
attributes: {
'rel': 'apple-touch-icon',
'href': 'assets/dspace/images/favicons/apple-touch-icon.png',
}
},
{
tagName: 'link',
attributes: {
'rel': 'manifest',
'href': 'assets/dspace/images/favicons/manifest.webmanifest',
}
},
]
},
],
// Whether to enable media viewer for image and/or video Bitstreams (i.e. Bitstreams whose MIME type starts with "image" or "video").