about summary refs log tree commit diff stats
path: root/src/templates.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates.ts')
-rw-r--r--src/templates.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/templates.ts b/src/templates.ts
index b8139f6..ac58a2c 100644
--- a/src/templates.ts
+++ b/src/templates.ts
@@ -118,6 +118,11 @@ async function renderListPage(tag: string, posts: Post[]) {
   const $feed = $(".h-feed");
   const $tpl = $(".h-entry").remove();
   $(".title").addClass("p-author h-card").attr("rel", "author");
+  if (tag === "") {
+    $(".filter").remove();
+  } else {
+    $(".filter").find("h3").text(`#${tag}`);
+  }
 
   for (const post of posts) {
     const $post = $tpl.clone();