diff --git a/mdsvex.config.ts b/mdsvex.config.ts index 92957099..df6c88b6 100644 --- a/mdsvex.config.ts +++ b/mdsvex.config.ts @@ -48,6 +48,15 @@ const remarkUraraFm = if (!data.fm.created) data.fm.created = ctime if (!data.fm.updated) data.fm.updated = mtime } + // Remark FFF Experimental (Hugo -> MDsveX) + Object.entries({ + image: 'images', + tags: 'category', + bookmark_of: 'bookmarkOf', + like_of: 'likeOf', + repost_of: 'repostOf', + in_reply_to: 'inReplyTo' + }).forEach(([output, input]: string[]) => (data.fm = { ...data.fm, [output]: data.fm![input] })) } // Better type definitions needed