feat(blog): author header social icons (#10222)

Co-authored-by: OzakIOne <OzakIOne@users.noreply.github.com>
Co-authored-by: sebastien <lorber.sebastien@gmail.com>
Co-authored-by: slorber <slorber@users.noreply.github.com>
This commit is contained in:
ozaki 2024-07-12 09:59:56 +02:00 committed by GitHub
parent 8b877d27d4
commit a6de0f2725
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
35 changed files with 1005 additions and 31 deletions

View file

@ -63,6 +63,7 @@ export async function getDataFileData<T>(
try {
const contentString = await fs.readFile(filePath, {encoding: 'utf8'});
const unsafeContent = Yaml.load(contentString);
// TODO we shouldn't validate here: it makes validation harder to test
return validate(unsafeContent);
} catch (err) {
logger.error`The ${params.fileType} file at path=${filePath} looks invalid.`;