fix(blog): correct import placement and add missing parsePublishTimePt import

This commit is contained in:
Roo Code 2026-01-28 21:14:17 +00:00
parent 616a7ed6c6
commit 7170595893

View file

@ -4,7 +4,7 @@ import matter from "gray-matter"
import { ZodError } from "zod"
import type { BlogPost } from "./types"
import { blogFrontmatterSchema } from "./types"
import { getNowPt } from "./pt-time"
import { getNowPt, parsePublishTimePt } from "./pt-time"
import { isPublished } from "./publishing"
/**
@ -158,7 +158,7 @@ export function getAllBlogPosts(options: GetAllBlogPostsOptions = {}): BlogPost[
return dateCompare
}
// Same date - compare times (descending)
import { getNowPt, parsePublishTimePt } from "./pt-time"
return parsePublishTimePt(b.publish_time_pt) - parsePublishTimePt(a.publish_time_pt)
})
}