summaryrefslogtreecommitdiffhomepage
path: root/vhosts/blog/nuldoc-src/commands
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-04-20 23:30:01 +0900
committernsfisis <nsfisis@gmail.com>2024-04-20 23:44:30 +0900
commitb372b90ae4f65855d6f7132c7722f0228f43daa8 (patch)
treeb674bd7cfbba7922612d2af0c9788ad7f17fd23a /vhosts/blog/nuldoc-src/commands
parent12dfd15b801b382722de48e4e198a6d2c09fe491 (diff)
downloadnsfisis.dev-b372b90ae4f65855d6f7132c7722f0228f43daa8.tar.gz
nsfisis.dev-b372b90ae4f65855d6f7132c7722f0228f43daa8.tar.zst
nsfisis.dev-b372b90ae4f65855d6f7132c7722f0228f43daa8.zip
feat(blog/nuldoc): support internal (not published) revision
Diffstat (limited to 'vhosts/blog/nuldoc-src/commands')
-rw-r--r--vhosts/blog/nuldoc-src/commands/build.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/vhosts/blog/nuldoc-src/commands/build.ts b/vhosts/blog/nuldoc-src/commands/build.ts
index 355604d8..1ad08825 100644
--- a/vhosts/blog/nuldoc-src/commands/build.ts
+++ b/vhosts/blog/nuldoc-src/commands/build.ts
@@ -12,7 +12,7 @@ import { generateHomePage } from "../pages/home.ts";
import { generateNotFoundPage } from "../pages/not_found.ts";
import {
generatePostPage,
- getPostCreatedDate,
+ getPostPublishedDate,
PostPage,
} from "../pages/post.ts";
import { generatePostListPage } from "../pages/post_list.ts";
@@ -202,8 +202,8 @@ function collectTags(taggedPages: TaggedPage[]): [string, TaggedPage[]][] {
result.push([
tag,
tagsAndPages.get(tag).sort((a: TaggedPage, b: TaggedPage) => {
- 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;