updated users

This commit is contained in:
Nuno Coração
2025-07-10 12:22:07 +01:00
parent 71f4eda1fd
commit 35eaa94c3a
525 changed files with 417 additions and 609 deletions

View File

@@ -123,15 +123,16 @@ async function translateFrontMatterTags(block, targetLang, tags) {
await fs.access(dir);
} catch {
await fs.mkdir(dir);
console.log(i, user.title, dir);
await fs.writeFile(dir + "/index.md", userMDFile);
for (const lang of targetLangs) {
const content = await translateFrontMatterTags(userMDFile, lang, user.tags);
await fs.writeFile(dir + `/index.${lang}.md`, content);
}
await page.goto(user.url);
await page.screenshot({ path: dir + "/feature.jpg", type: "webp", quality: 50 });
}
console.log(i, user.title);
await fs.writeFile(dir + "/index.md", userMDFile);
for (const lang of targetLangs) {
const content = await translateFrontMatterTags(userMDFile, lang, user.tags);
await fs.writeFile(dir + `/index.${lang}.md`, content);
}
await page.goto(user.url);
await page.screenshot({ path: dir + "/feature.jpg", type: "webp", quality: 50 });
}
await browser.close();