Skip to content

Commit

Permalink
Update timestamp style and spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
stormwarning committed Dec 28, 2024
1 parent 443074c commit aef76d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion www/src/routes/writing/[slug]/+page.server.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ export const load = async ({ params }) => {

return {
...post,
createdAt: format(new Date(post._createdAt), 'dd MMMM yyyy, h:mm aaa'),
createdAt: format(new Date(post._createdAt), 'dd MMMM yyyy'),
}
}
11 changes: 5 additions & 6 deletions www/src/routes/writing/[slug]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,12 @@ $: ({ title, lede, ledeClean, coverImage, content, createdAt } = data)
<article>
<PageIntro>
{title}
<div
slot="intro"
class="grid gap-6 md:gap-10 xl:gap-12"
let:intersecting
>
<div slot="intro" class="grid gap-5 md:gap-6" let:intersecting>
<FadeUp showing={intersecting} delay={100}>
<time datetime={data._createdAt}>{createdAt}</time>
<time
class="text-grey-400 leading-trim salt text-base font-medium md:text-lg"
datetime={data._createdAt}>{createdAt}</time
>
</FadeUp>
<FadeUp showing={intersecting} delay={175}>
<TextLede><PortableText value={lede} /></TextLede>
Expand Down

0 comments on commit aef76d7

Please sign in to comment.