diff --git a/angular.json b/angular.json index a57b7582109..5c49ae2df8b 100644 --- a/angular.json +++ b/angular.json @@ -159,6 +159,16 @@ "input": "src/styles/base-theme.scss", "inject": false, "bundleName": "base-theme" + }, + { + "input": "src/themes/custom/styles/theme.scss", + "inject": false, + "bundleName": "custom-theme" + }, + { + "input": "src/themes/dspace/styles/theme.scss", + "inject": false, + "bundleName": "dspace-theme" } ], "scripts": [] diff --git a/config/config.yml b/config/config.yml index 9257bd2b09d..4a52bddb4ad 100644 --- a/config/config.yml +++ b/config/config.yml @@ -98,6 +98,66 @@ cache: # This ensures stale pages (older than timeToLive) are never returned from the cache, but some users will wait on SSR. allowStale: true +# Theme Config +themes: + # Add additional themes here. In the case where multiple themes match a route, the first one + # in this list will get priority. It is advisable to always have a theme that matches + # every route as the last one + # + # # A theme with a handle property will match the community, collection or item with the given + # # handle, and all collections and/or items within it + # - name: custom + # handle: 10673/1233 + # + # # A theme with a regex property will match the route using a regular expression. If it + # # matches the route for a community or collection it will also apply to all collections + # # and/or items within it + # - name: custom + # regex: collections\/e8043bc2.* + # + # # A theme with a uuid property will match the community, collection or item with the given + # # ID, and all collections and/or items within it + # - name: custom + # uuid: 0958c910-2037-42a9-81c7-dca80e3892b4 + # + # # The extends property specifies an ancestor theme (by name). Whenever a themed component is not found + # # in the current theme, its ancestor theme(s) will be checked recursively before falling back to default. + # - name: custom-A + # extends: custom-B + # # Any of the matching properties above can be used + # handle: 10673/34 + # + # - name: custom-B + # extends: custom + # handle: 10673/12 + # + # # A theme with only a name will match every route + # name: custom + # + # # This theme will use the default bootstrap styling for DSpace components + # - name: BASE_THEME_NAME + # + - name: custom + headTags: + - tagName: link + attributes: + rel: icon + href: assets/custom/images/favicons/favicon.ico + sizes: any + - tagName: link + attributes: + rel: icon + href: assets/custom/images/favicons/favicon.svg + type: image/svg+xml + - tagName: link + attributes: + rel: apple-touch-icon + href: assets/custom/images/favicons/apple-touch-icon.png + - tagName: link + attributes: + rel: manifest + href: assets/custom/images/favicons/manifest.webmanifest + #info: # # Whether the end user agreement is required before users may use the repository. # # If enabled, the user will be required to accept the agreement before they can use the repository. diff --git a/src/app/admin/admin-sidebar/admin-sidebar.component.html b/src/app/admin/admin-sidebar/admin-sidebar.component.html index fcb33eb1755..8c889344384 100644 --- a/src/app/admin/admin-sidebar/admin-sidebar.component.html +++ b/src/app/admin/admin-sidebar/admin-sidebar.component.html @@ -15,7 +15,7 @@