Fix layout generation
This commit is contained in:
parent
1538d44018
commit
6ba4cb18c6
1 changed files with 4 additions and 4 deletions
|
@ -88,8 +88,8 @@ async function createManifest(layout: LayoutConfig) {
|
||||||
console.log(icon)
|
console.log(icon)
|
||||||
throw "Icon is not an svg for " + layout.id
|
throw "Icon is not an svg for " + layout.id
|
||||||
}
|
}
|
||||||
const ogTitle = Translations.W(layout.title).ConstructElement()?.innerText;
|
const ogTitle = Translations.WT(layout.title).txt;
|
||||||
const ogDescr = Translations.W(layout.description ?? "").ConstructElement()?.innerText;
|
const ogDescr = Translations.WT(layout.description ?? "").txt;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
name: name,
|
name: name,
|
||||||
|
@ -109,8 +109,8 @@ async function createLandingPage(layout: LayoutConfig, manifest) {
|
||||||
|
|
||||||
Locale.language.setData(layout.language[0]);
|
Locale.language.setData(layout.language[0]);
|
||||||
|
|
||||||
const ogTitle = Translations.W(layout.title)?.ConstructElement()?.innerText;
|
const ogTitle = Translations.WT(layout.title).txt;
|
||||||
const ogDescr = Translations.W(layout.shortDescription ?? "Easily add and edit geodata with OpenStreetMap")?.ConstructElement()?.innerText;
|
const ogDescr = Translations.WT(layout.shortDescription ?? "Easily add and edit geodata with OpenStreetMap").txt;
|
||||||
const ogImage = layout.socialImage;
|
const ogImage = layout.socialImage;
|
||||||
|
|
||||||
let customCss = "";
|
let customCss = "";
|
||||||
|
|
Loading…
Reference in a new issue