diff options
Diffstat (limited to 'vhosts/blog/nuldoc-src/pages/slide_list.ts')
| -rw-r--r-- | vhosts/blog/nuldoc-src/pages/slide_list.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vhosts/blog/nuldoc-src/pages/slide_list.ts b/vhosts/blog/nuldoc-src/pages/slide_list.ts index 0b59b1dc..738f42ac 100644 --- a/vhosts/blog/nuldoc-src/pages/slide_list.ts +++ b/vhosts/blog/nuldoc-src/pages/slide_list.ts @@ -6,7 +6,7 @@ import { Config } from "../config.ts"; import { el, text } from "../dom.ts"; import { Page } from "../page.ts"; import { dateToString } from "../revision.ts"; -import { getPostCreatedDate } from "./post.ts"; +import { getPostPublishedDate } from "./post.ts"; import { SlidePage } from "./slide.ts"; export type SlideListPage = Page; @@ -34,8 +34,8 @@ export async function generateSlideListPage( ), ), ...Array.from(slides).sort((a, b) => { - const ta = dateToString(getPostCreatedDate(a)); - const tb = dateToString(getPostCreatedDate(b)); + const ta = dateToString(getPostPublishedDate(a)); + const tb = dateToString(getPostPublishedDate(b)); if (ta > tb) return -1; if (ta < tb) return 1; return 0; |
