mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-23 03:39:13 +08:00
merge with urara-experimental
This commit is contained in:
parent
80a0b23071
commit
ad830f9463
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue