Skip to content

Commit

Permalink
Merge pull request #41 from gethexon/0927-fix_article_type
Browse files Browse the repository at this point in the history
fix: article type
  • Loading branch information
YuJianghao authored Apr 29, 2024
2 parents bb95fb2 + e4dd713 commit a139df4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/src/server/services/hexo-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ function isAsset(pageOrAsset: HexoPage) {
function transformPost(doc: HexoPost): Post {
return {
...doc,
__post: true,
slug: doc.slug,
date: doc.date.toString(),
updated: doc.updated?.toString(),
Expand All @@ -120,6 +121,7 @@ function transformPostToBrief({
function transformPage(doc: HexoPage) {
return {
...doc,
__page: true,
slug: doc.slug,
date: doc.date.toString(),
updated: doc.updated?.toString(),
Expand Down

0 comments on commit a139df4

Please sign in to comment.