Skip to content
This repository was archived by the owner on Nov 21, 2023. It is now read-only.

Commit 229e462

Browse files
committed
Add content to footer and move twitter field
1 parent 0e29738 commit 229e462

File tree

3 files changed

+24
-16
lines changed

3 files changed

+24
-16
lines changed

admin/app/data/config.js

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
import { title } from '../fields/title.js'
12
import { links } from '../fields/links.js'
23
import { description } from '../fields/description.js'
4+
import { text_area } from '../fields/text-area.js'
35
import { text_markdown } from '../fields/text-markdown.js'
46
import { state } from '../fields/state.js'
57
import { image_src } from '../fields/image-src.js'
8+
import { cta } from '../fields/cta.js'
69
import { twitter } from '../fields/twitter.js'
710
import {t} from "../i18n/translater.js";
811

@@ -32,6 +35,7 @@ const config = {
3235
file: 'data/menu/secondary.yml',
3336
i18n: true,
3437
fields: [
38+
title,
3539
links
3640
]
3741
},
@@ -64,22 +68,25 @@ const config = {
6468
]
6569
},
6670
{
67-
name: 'seo',
68-
label: t.config.files.seo.label,
69-
file: 'data/seo.yml',
71+
name: 'footer',
72+
label: t.config.files.footer,
73+
file: 'data/footer.yml',
7074
i18n: true,
7175
fields: [
72-
{ name: 'title', label: t.config.files.seo.fields.title, widget: 'string', i18n: true },
73-
description,
74-
image_src
76+
title,
77+
text_area,
78+
cta
7579
]
7680
},
7781
{
78-
name: 'socials',
79-
label: t.config.files.social,
80-
file: 'config/_default/social.yaml',
82+
name: 'seo',
83+
label: t.config.files.seo.label,
84+
file: 'data/seo.yml',
8185
i18n: true,
8286
fields: [
87+
{ name: 'title', label: t.config.files.seo.fields.title, widget: 'string', i18n: true },
88+
description,
89+
image_src,
8390
twitter
8491
]
8592
},
@@ -98,7 +105,6 @@ const config = {
98105
}
99106
]
100107
}
101-
102108
]
103109

104110
}

admin/app/i18n/en/config.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,18 @@ export const config = {
66
legal: "Legal menu (notice, conditions…)",
77
social: "Menu social networks",
88
banner: "Information banner at the top of the site",
9+
footer: "Information text at the bottom of the site",
910
seo: {
10-
label: "SEO",
11+
label: "SEO global",
1112
fields: {
1213
title: "Name of site"
1314
}
1415
},
15-
socials: "SEO: Social networks",
1616
analytics: {
1717
label: "Scripts analytics",
1818
fields: {
19-
googleAnalytics: "Google Analytics (G4)"
19+
googleAnalytics: "Google Analytics (G4)",
20+
plausible: "Enable plausible?"
2021
}
2122
}
2223
}

admin/app/i18n/fr/config.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,18 @@ export const config = {
66
legal: "Menu légal (mentions, politiques…)",
77
social: "Menu réseaux sociaux",
88
banner: "Bannière d’information en haut du site",
9+
footer: "Texte d’information en bas du site",
910
seo: {
10-
label: "SEO",
11+
label: "Global SEO",
1112
fields: {
1213
title: "Nom du site"
1314
}
1415
},
15-
socials: "SEO: Réseaux sociaux",
1616
analytics: {
1717
label: "Scripts analytics",
1818
fields: {
19-
googleAnalytics: "Google Analytics (G4)"
19+
googleAnalytics: "Google Analytics (G4)",
20+
plausible: "Activer plausible ?"
2021
}
2122
}
2223
}

0 commit comments

Comments
 (0)