console debugs when could not parse YAML frontmatter

This commit is contained in:
2026-03-21 20:36:08 +00:00
parent 18ac414a8f
commit 7add075568
+3 -1
View File
@@ -45,7 +45,9 @@ export default function gemtext(config: GemtextConfig = {}): AstroIntegration {
frontmatter = lines.slice(1, bodyStartLineIndex - 1).join('\n'); frontmatter = lines.slice(1, bodyStartLineIndex - 1).join('\n');
try { try {
data = { ...data, ...parseYaml(frontmatter, { schema: 'yaml-1.1' }) }; data = { ...data, ...parseYaml(frontmatter, { schema: 'yaml-1.1' }) };
} catch { } } catch (e) {
console.debug('Failed to parse YAML frontmatter in gemtext:', e);
}
} }
const body = lines.slice(bodyStartLineIndex).join('\n'); const body = lines.slice(bodyStartLineIndex).join('\n');