aboutsummaryrefslogtreecommitdiffhomepage
path: root/services/nuldoc/nuldoc-src/pages/PostListPage.ts
diff options
context:
space:
mode:
Diffstat (limited to 'services/nuldoc/nuldoc-src/pages/PostListPage.ts')
-rw-r--r--services/nuldoc/nuldoc-src/pages/PostListPage.ts7
1 files changed, 3 insertions, 4 deletions
diff --git a/services/nuldoc/nuldoc-src/pages/PostListPage.ts b/services/nuldoc/nuldoc-src/pages/PostListPage.ts
index 53b8fa4..ef7bfc5 100644
--- a/services/nuldoc/nuldoc-src/pages/PostListPage.ts
+++ b/services/nuldoc/nuldoc-src/pages/PostListPage.ts
@@ -5,7 +5,7 @@ import Pagination from "../components/Pagination.ts";
import PostPageEntry from "../components/PostPageEntry.ts";
import { Config } from "../config.ts";
import { PostPage } from "../generators/post.ts";
-import { elem, Element } from "../dom.ts";
+import { elem, Element, h1, header } from "../dom.ts";
export default async function PostListPage(
posts: PostPage[],
@@ -34,10 +34,9 @@ export default async function PostListPage(
elem(
"main",
{ class: "main" },
- elem(
- "header",
+ header(
{ class: "page-header" },
- elem("h1", {}, pageTitle + pageInfoSuffix),
+ h1({}, pageTitle + pageInfoSuffix),
),
Pagination({ currentPage, totalPages, basePath: "/posts/" }),
...posts.map((post) => PostPageEntry({ post, config })),