#743 - Fix for storing yaml

This commit is contained in:
Elio Struyf
2024-01-26 16:42:57 +01:00
parent 7240747e86
commit 5f92ad33ff
9 changed files with 31 additions and 72 deletions
+2 -2
View File
@@ -163,7 +163,7 @@ export class FrameworkDetector {
if (await existsAsync(hexoConfig)) {
const content = await readFileAsync(hexoConfig, 'utf8');
// Convert YAML to JSON
const config = jsyaml.load(content);
const config = jsyaml.load(content) as any;
// Check if post assets are used: https://hexo.io/docs/asset-folders.html#Post-Asset-Folder
if (config.post_asset_folder) {
@@ -210,7 +210,7 @@ export class FrameworkDetector {
if (await existsAsync(jekyllConfig)) {
const content = await readFileAsync(jekyllConfig, 'utf8');
// Convert YAML to JSON
const config = jsyaml.load(content);
const config = jsyaml.load(content) as any;
if (config.collections_dir) {
collectionDir = config.collections_dir;