aboutsummaryrefslogtreecommitdiffhomepage
path: root/nuldoc-src/pages/slide_list.ts
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2023-03-19 04:32:36 +0900
committernsfisis <nsfisis@gmail.com>2023-03-19 04:37:08 +0900
commitf2424f306be40e27c76def020ecb2ce1ec2aad4e (patch)
tree4ab51d9d20707dac51a4a2be60bc476bbac9bdbd /nuldoc-src/pages/slide_list.ts
parentca7a609fef1167374f7c36ae87be154b0142dd47 (diff)
downloadblog.nsfisis.dev-f2424f306be40e27c76def020ecb2ce1ec2aad4e.tar.gz
blog.nsfisis.dev-f2424f306be40e27c76def020ecb2ce1ec2aad4e.tar.zst
blog.nsfisis.dev-f2424f306be40e27c76def020ecb2ce1ec2aad4e.zip
refactor: change type of Revision.date
Diffstat (limited to 'nuldoc-src/pages/slide_list.ts')
-rw-r--r--nuldoc-src/pages/slide_list.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/nuldoc-src/pages/slide_list.ts b/nuldoc-src/pages/slide_list.ts
index 18bea1f..5031436 100644
--- a/nuldoc-src/pages/slide_list.ts
+++ b/nuldoc-src/pages/slide_list.ts
@@ -5,6 +5,7 @@ import { slidePageEntry } from "../components/slide_page_entry.ts";
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 { SlidePage } from "./slide.ts";
@@ -33,8 +34,8 @@ export async function generateSlideListPage(
),
),
...Array.from(slides).sort((a, b) => {
- const ta = getPostCreatedDate(a);
- const tb = getPostCreatedDate(b);
+ const ta = dateToString(getPostCreatedDate(a));
+ const tb = dateToString(getPostCreatedDate(b));
if (ta > tb) return -1;
if (ta < tb) return 1;
return 0;