Skip to content

Commit d2bf667

Browse files
committed
fix: show border on masonry page title
1 parent 870e3ed commit d2bf667

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

layout/pages/masonry.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
const hasExif = Array.isArray(masonryEntries) && masonryEntries.some((entry) => entry && typeof entry === "object" && entry.exif === true);
55
%>
66
<div class="py-8 sm:py-0">
7-
<%- partial('components/page-title', {title: page.title}) %>
7+
<%- partial('components/page-title', {title: page.title, showBorder: true}) %>
88
<div id="masonry-container" class="relative block min-h-screen opacity-100" data-masonry-data-url="<%- masonryDataUrl %>" aria-busy="false"></div>
99
<div id="masonry-loadmore" class="my-5 mb-2.5 flex min-h-7 items-center justify-center gap-2.5 text-[0.95rem] text-rd-gray-1000" aria-live="polite" hidden>
1010
<span class="h-[18px] w-[18px] animate-spin rounded-full border-2 border-rd-gray-alpha-400 border-t-primary" aria-hidden="true"></span>

tests/theme-generation.test.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ test("theme build and generation matrices", async (t) => {
8080
assert.ok(readOutput(route).includes(marker), `${route} is missing ${marker}`);
8181
});
8282

83+
assert.ok(readOutput("masonry/index.html").includes(borderedPageTitle));
84+
8385
const categories = readOutput("categories/index.html");
8486
includes(categories, [
8587
'class="mb-4 pt-5 sm:mb-6 sm:pt-0 md:mb-8"',

0 commit comments

Comments
 (0)