diff --git a/src/components/Navbar.astro b/src/components/Navbar.astro index a739ad3..802fa40 100644 --- a/src/components/Navbar.astro +++ b/src/components/Navbar.astro @@ -24,8 +24,8 @@ const links: NavBarLink[] = navBarConfig.links.map( "card-base sticky top-0 overflow-visible max-w-[var(--page-width)] h-[4.5rem] rounded-t-none mx-auto flex items-center justify-between px-4"]}>
- - {siteConfig.title} + +
- {formatDateToYYYYMMDD(published)} + {formatDateToWords(published)} diff --git a/src/content/posts/luau-for-js-devs/index.md b/src/content/posts/luau-for-js-devs/index.md index fb7e29b..c13d797 100644 --- a/src/content/posts/luau-for-js-devs/index.md +++ b/src/content/posts/luau-for-js-devs/index.md @@ -86,7 +86,7 @@ The Luau community has developed many libraries to make JavaScript developers fe 4. ::github{repo="seaofvoices/luau-path"} 5. ::github{repo="nicell/lynx"} -…And many more which I haven't listed here! +…and many more which I haven't listed here! :::note It isn't currently possible for create websites using react-lua, it is currently only used for diff --git a/src/utils/date-utils.ts b/src/utils/date-utils.ts index b62fbb9..beb0abf 100644 --- a/src/utils/date-utils.ts +++ b/src/utils/date-utils.ts @@ -1,3 +1,7 @@ export function formatDateToYYYYMMDD(date: Date): string { return date.toISOString().substring(0, 10); } + +export function formatDateToWords(date: Date): string { + return date.toUTCString().substring(0, 16); +}