File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
helm/env.d/dev/configuration/theme Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ THEME_CUSTOMIZATION_FILE_PATH=<path>
44
44
45
45
### Example of JSON
46
46
47
- The json must follow some rules: https://github.com/suitenumerique/docs/blob/main/src/backend/impress/ configuration/theme/default .json
47
+ The json must follow some rules: https://github.com/suitenumerique/docs/blob/main/src/helm/env.d/dev/ configuration/theme/demo .json
48
48
49
49
` footer.default ` is the fallback if the language is not supported.
50
50
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ const BlueStripe = styled.div`
22
22
export const Footer = ( ) => {
23
23
const { data : config } = useConfig ( ) ;
24
24
const footerJson = config ?. theme_customization ?. footer ;
25
- const { i18n } = useTranslation ( ) ;
25
+ const { i18n, t } = useTranslation ( ) ;
26
26
const [ legalLinks , setLegalLinks ] = useState < Link [ ] > ( ) ;
27
27
const [ externalLinks , setExternalLinks ] = useState < Link [ ] > ( ) ;
28
28
const [ bottomInformation , setBottomInformation ] =
@@ -82,7 +82,7 @@ export const Footer = () => {
82
82
< Image
83
83
priority
84
84
src = { logo . src }
85
- alt = { logo ?. alt || 'Logo' }
85
+ alt = { logo ?. alt || t ( 'Logo' ) }
86
86
width = { 0 }
87
87
height = { 0 }
88
88
style = { { width : logo ?. width || 'auto' , height : 'auto' } }
Original file line number Diff line number Diff line change 1
1
{
2
2
"footer" : {
3
3
"default" : {
4
+ "logo" : {
5
+ "src" : " /assets/icon-docs.svg" ,
6
+ "width" : " 54px" ,
7
+ "alt" : " Docs Logo" ,
8
+ "withTitle" : true
9
+ },
4
10
"externalLinks" : [
5
11
{
6
12
"label" : " Github" ,
You can’t perform that action at this time.
0 commit comments