Skip to content

Commit aef76d7

Browse files
committed
Update timestamp style and spacing
1 parent 443074c commit aef76d7

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

www/src/routes/writing/[slug]/+page.server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ export const load = async ({ params }) => {
2323

2424
return {
2525
...post,
26-
createdAt: format(new Date(post._createdAt), 'dd MMMM yyyy, h:mm aaa'),
26+
createdAt: format(new Date(post._createdAt), 'dd MMMM yyyy'),
2727
}
2828
}

www/src/routes/writing/[slug]/+page.svelte

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,12 @@ $: ({ title, lede, ledeClean, coverImage, content, createdAt } = data)
2828
<article>
2929
<PageIntro>
3030
{title}
31-
<div
32-
slot="intro"
33-
class="grid gap-6 md:gap-10 xl:gap-12"
34-
let:intersecting
35-
>
31+
<div slot="intro" class="grid gap-5 md:gap-6" let:intersecting>
3632
<FadeUp showing={intersecting} delay={100}>
37-
<time datetime={data._createdAt}>{createdAt}</time>
33+
<time
34+
class="text-grey-400 leading-trim salt text-base font-medium md:text-lg"
35+
datetime={data._createdAt}>{createdAt}</time
36+
>
3837
</FadeUp>
3938
<FadeUp showing={intersecting} delay={175}>
4039
<TextLede><PortableText value={lede} /></TextLede>

0 commit comments

Comments
 (0)