Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

Commit 7170595

Browse files
committed
fix(blog): correct import placement and add missing parsePublishTimePt import
1 parent 616a7ed commit 7170595

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/web-roo-code/src/lib/blog/content.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import matter from "gray-matter"
44
import { ZodError } from "zod"
55
import type { BlogPost } from "./types"
66
import { blogFrontmatterSchema } from "./types"
7-
import { getNowPt } from "./pt-time"
7+
import { getNowPt, parsePublishTimePt } from "./pt-time"
88
import { isPublished } from "./publishing"
99

1010
/**
@@ -158,7 +158,7 @@ export function getAllBlogPosts(options: GetAllBlogPostsOptions = {}): BlogPost[
158158
return dateCompare
159159
}
160160
// Same date - compare times (descending)
161-
import { getNowPt, parsePublishTimePt } from "./pt-time"
161+
return parsePublishTimePt(b.publish_time_pt) - parsePublishTimePt(a.publish_time_pt)
162162
})
163163
}
164164

0 commit comments

Comments
 (0)