@rmdes/indiekit-endpoint-site-config 1.0.0-beta.5 → 1.0.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -44,6 +44,7 @@ function parseSocialFromBody(body) {
|
|
|
44
44
|
export function parseIdentityBody(body) {
|
|
45
45
|
return {
|
|
46
46
|
name: safeString(body.name),
|
|
47
|
+
siteName: safeString(body.siteName),
|
|
47
48
|
avatar: safeUrlOrEmpty(body.avatar),
|
|
48
49
|
title: safeString(body.title),
|
|
49
50
|
pronoun: safeString(body.pronoun),
|
|
@@ -37,6 +37,11 @@ export const DEFAULTS_SITE = Object.freeze({
|
|
|
37
37
|
schemaVersion: 3,
|
|
38
38
|
identity: Object.freeze({
|
|
39
39
|
name: "",
|
|
40
|
+
// Site title / brand — drives the header, <title>, og:site_name and
|
|
41
|
+
// schema.org publisher. Distinct from `name` (the person, used by the
|
|
42
|
+
// h-card / hero). Empty falls back to `name` in the theme so single-author
|
|
43
|
+
// sites where the brand IS the person keep working with one field.
|
|
44
|
+
siteName: "",
|
|
40
45
|
avatar: "",
|
|
41
46
|
title: "",
|
|
42
47
|
pronoun: "",
|
package/locales/en.json
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"saved": "Identity saved successfully. Refresh your site to see changes.",
|
|
22
22
|
"profile": {
|
|
23
23
|
"legend": "Profile",
|
|
24
|
-
"name": { "label": "Name", "hint": "
|
|
24
|
+
"name": { "label": "Name", "hint": "The person's name, shown in the h-card, hero, and author cards. For the site/brand title, use Site title below." },
|
|
25
25
|
"title": { "label": "Title", "hint": "Job title or tagline (e.g. 'Middleware Engineer')" },
|
|
26
26
|
"avatar": { "label": "Avatar URL", "hint": "URL of your profile photo for the h-card" },
|
|
27
27
|
"pronoun": { "label": "Pronouns", "hint": "e.g. she/her, he/him, they/them" },
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"preferences": {
|
|
56
56
|
"legend": "Site preferences"
|
|
57
57
|
},
|
|
58
|
-
"
|
|
58
|
+
"siteName": { "label": "Site title", "hint": "Shown in the site header, browser tab, and link previews. Leave blank to use your Name above (for single-author sites where the brand is the person)." },
|
|
59
59
|
"description": "Description",
|
|
60
60
|
"tagline": "Tagline",
|
|
61
61
|
"defaultOgImage": "Default OpenGraph image URL",
|
package/locales/fr.json
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"saved": "Identité enregistrée avec succès. Actualisez votre site pour voir les modifications.",
|
|
22
22
|
"profile": {
|
|
23
23
|
"legend": "Profil",
|
|
24
|
-
"name": { "label": "Nom", "hint": "
|
|
24
|
+
"name": { "label": "Nom", "hint": "Le nom de la personne, affiché dans la h-card, le hero et les cartes d'auteur. Pour le titre du site/de la marque, utilisez Titre du site ci-dessous." },
|
|
25
25
|
"title": { "label": "Titre", "hint": "Intitulé de poste ou slogan (ex. « Ingénieur middleware »)" },
|
|
26
26
|
"avatar": { "label": "URL de l'avatar","hint": "URL de votre photo de profil pour la h-card" },
|
|
27
27
|
"pronoun": { "label": "Pronoms", "hint": "ex. elle, il, iel" },
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"preferences": {
|
|
56
56
|
"legend": "Préférences du site"
|
|
57
57
|
},
|
|
58
|
-
"
|
|
58
|
+
"siteName": { "label": "Titre du site", "hint": "Affiché dans l'en-tête du site, l'onglet du navigateur et les aperçus de liens. Laissez vide pour utiliser votre Nom ci-dessus (pour les sites mono-auteur où la marque est la personne)." },
|
|
59
59
|
"description": "Description",
|
|
60
60
|
"tagline": "Slogan",
|
|
61
61
|
"defaultOgImage": "Image OpenGraph par défaut",
|
package/package.json
CHANGED
|
@@ -334,6 +334,12 @@
|
|
|
334
334
|
<section class="hp-section">
|
|
335
335
|
<h2>{{ __('siteConfig.identity.preferences.legend') }}</h2>
|
|
336
336
|
<div class="hp-field-grid">
|
|
337
|
+
<div class="field field--full">
|
|
338
|
+
<label class="field__label" for="siteName">{{ __('siteConfig.identity.siteName.label') }}</label>
|
|
339
|
+
<input class="field__input" type="text" id="siteName" name="siteName"
|
|
340
|
+
value="{{ config.identity.siteName or '' }}">
|
|
341
|
+
<p class="field__hint">{{ __('siteConfig.identity.siteName.hint') }}</p>
|
|
342
|
+
</div>
|
|
337
343
|
<div class="field">
|
|
338
344
|
<label class="field__label" for="locale">{{ __('siteConfig.identity.locale') }}</label>
|
|
339
345
|
<input class="field__input" type="text" id="locale" name="locale"
|