85123: Document head tags in environment.common.ts

This commit is contained in:
Bruno Roemers
2021-12-16 17:29:08 +01:00
parent 03fd57e426
commit 9f44cecdad

View File

@@ -293,8 +293,11 @@ export const environment: GlobalConfig = {
{
// The default dspace theme
name: 'dspace',
// Whenever this theme is active, the following tags will be injected into the <head> of the page.
// Example use case: set the favicon based on the active theme.
headTags: [
{
// Insert <link rel="icon" href="assets/dspace/images/favicons/favicon.ico" sizes="any"/> into the <head> of the page.
tagName: 'link',
attributes: {
'rel': 'icon',
@@ -303,6 +306,7 @@ export const environment: GlobalConfig = {
}
},
{
// Insert <link rel="icon" href="assets/dspace/images/favicons/favicon.svg" type="image/svg+xml"/> into the <head> of the page.
tagName: 'link',
attributes: {
'rel': 'icon',
@@ -311,6 +315,7 @@ export const environment: GlobalConfig = {
}
},
{
// Insert <link rel="apple-touch-icon" href="assets/dspace/images/favicons/apple-touch-icon.png"/> into the <head> of the page.
tagName: 'link',
attributes: {
'rel': 'apple-touch-icon',
@@ -318,6 +323,7 @@ export const environment: GlobalConfig = {
}
},
{
// Insert <link rel="manifest" href="assets/dspace/images/favicons/manifest.webmanifest"/> into the <head> of the page.
tagName: 'link',
attributes: {
'rel': 'manifest',