all repos — homestead @ 3356854425a6bef22d20858a93bd3b085a74416a

Code for my website

Add headings to tag pages

Alan Pearce
commit

3356854425a6bef22d20858a93bd3b085a74416a

parent

6e4244321f009d10af915b2674f6d831a0fdb550

1 file changed, 5 insertions(+), 0 deletions(-)

changed files
M src/templates.tssrc/templates.ts
@@ -118,6 +118,11 @@ );
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();